Function at 0x1000e240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067977
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x1007a200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, edx
mov ebx, ecx
mov ecx, edi
mov dword [ebp - 0x424], eax
call fcn.1001ea70
push 0x1006deb0
mov eax, 7
mov edx, edi
call fcn.100095e0
push 0x1006d824
mov eax, 1
mov edx, edi
call fcn.100095e0
lea esi, [ebp - 0x444]
mov eax, ebx
call fcn.10004350
mov eax, dword [eax + 0x14]
test eax, eax
sete byte [ebp - 0x415]
cmp dword [ebp - 0x42c], 8
jb 0x1000e2d5
mov ecx, dword [ebp - 0x440]
push ecx
call fcn.10047382
add esp, 4
cmp byte [ebp - 0x415], 0
lea esi, [ebp - 0x444]
mov eax, ebx
je 0x1000e311
call fcn.10004320
push 0
push eax
or eax, 0xffffffff
mov esi, edi
mov dword [ebp - 4], 0
call fcn.10009510
cmp dword [ebp - 0x42c], 8
jb 0x1000e342
mov edx, dword [ebp - 0x440]
push edx
jmp 0x1000e33a
call fcn.10004350
push 0
push eax
or eax, 0xffffffff
mov esi, edi
mov dword [ebp - 4], 1
call fcn.10009510
cmp dword [ebp - 0x42c], 8
jb 0x1000e342
mov eax, dword [ebp - 0x440]
push eax
call fcn.10047382
add esp, 4
xor eax, eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x414], eax
mov esi, dword [ebp - 0x424]
mov byte [ebp - 4], 3
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 0x414]
push edx
push 0
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp dword [ebp - 0x414], 0
jne 0x1000e46b
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 0x41c]
push edx
push 0
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [ebp - 0x41c]
test eax, eax
jne 0x1000e3d4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x414]
test ecx, ecx
je 0x1000e3ba
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1000e3cd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
jmp 0x1000e59b
mov dword [ebp - 0x424], eax
lea esi, [ebp - 0x460]
mov eax, ebx
call fcn.10004350
mov esi, 8
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], esi
jb 0x1000e3fa
mov eax, dword [eax + 4]
jmp 0x1000e3fd
add eax, 4
mov ecx, dword [ebp - 0x424]
mov edx, dword [ecx]
lea ebx, [ebp - 0x414]
push ebx
push 0
push 0
push 0
push eax
mov eax, dword [edx + 0x10]
push ecx
call eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x448], esi
jb 0x1000e434
mov ecx, dword [ebp - 0x45c]
push ecx
call fcn.10047382
add esp, 4
xor edx, edx
mov dword [ebp - 0x448], 7
mov dword [ebp - 0x44c], 0
mov word [ebp - 0x45c], dx
cmp dword [ebp - 0x414], edx
jne 0x1000e46b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x41c]
jmp 0x1000e3c1
cmp dword [edi + 0x18], 8
jb 0x1000e476
mov edi, dword [edi + 4]
jmp 0x1000e479
add edi, 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000e4be
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x1000e4ac
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x41c]
jmp 0x1000e3c1
push 0x3ff
xor esi, esi
lea eax, [ebp - 0x40f]
push esi
push eax
mov byte [ebp - 0x410], 0
call fcn.10049f60
mov eax, dword [ebp - 0x414]
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
mov ebx, 0x400
push ebx
lea edx, [ebp - 0x410]
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x428], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x1000e563
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1000e520
mov edx, dword [ebp - 0x420]
push 0
lea ecx, [ebp - 0x428]
push ecx
push edx
lea eax, [ebp - 0x410]
push eax
push edi
call esi
cmp dword [ebp - 0x420], ebx
jb 0x1000e563
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax]
lea edx, [ebp - 0x420]
push edx
push ebx
lea edx, [ebp - 0x410]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x1000e520
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x1000e580
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x1000e599
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004738d
mov esp, ebp
pop ebp
ret 4