Function at 0x42e15b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cd97
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4997d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x42e1a5
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
jmp 0x42e1ab
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
xor eax, eax
jne 0x42e1ab
xor eax, eax
jne 0x42e1ab
push 0
push 0x80
push 4
push 0
push 0
push 3
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x42e1de
call fcn.0042e6ec
mov dword [ebp - 0x1c], eax
jmp 0x42e1f0
xor eax, eax
jne 0x42e1de
xor eax, eax
jne 0x42e1de
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x42e226
mov byte [ebp - 0x1d], 0
mov dword [ebp - 4], 2
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x42e21e
cmp dword [ebp - 0x10], 0
je 0x42e21e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x1d]
jmp 0x42e444
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x50]
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042ed3d
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42e271
mov byte [ebp - 0x1e], 0
mov dword [ebp - 4], 3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x42e269
cmp dword [ebp - 0x10], 0
je 0x42e269
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x1e]
jmp 0x42e444
xor eax, eax
jne 0x42e271
xor eax, eax
jne 0x42e271
and dword [ebp - 0x38], 0
and dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x42e2b2
call fcn.0042e6ec
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jge 0x42e2b2
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
jmp 0x42e2b6
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x42e2ec
mov byte [ebp - 0x1f], 0
mov dword [ebp - 4], 4
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x42e2e4
cmp dword [ebp - 0x10], 0
je 0x42e2e4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x1f]
jmp 0x42e444
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x50], 0
ja 0x42e32d
mov byte [ebp - 0x20], 1
mov dword [ebp - 4], 5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x42e325
cmp dword [ebp - 0x10], 0
je 0x42e325
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x20]
jmp 0x42e444
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
mov eax, dword [eax + 0x4c]
cmp eax, dword [ecx + 0x48]
ja 0x42e35b
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
mov eax, dword [eax + 0x44]
sub eax, dword [ecx + 0x48]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
mov eax, dword [eax + 0x4c]
sub eax, dword [ecx + 0x40]
mov dword [ebp - 0x18], eax
jmp 0x42e368
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x14], eax
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x14], 0
jbe 0x42e3b1
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x4c], eax
xor eax, eax
jne 0x42e37b
xor eax, eax
jne 0x42e37b
cmp dword [ebp - 0x50], 0
jne 0x42e38f
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], eax
push 0
push dword [ebp - 0x50]
push dword [ebp - 0x14]
push dword [ebp - 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x42e3b1
call fcn.0042e6ec
cmp dword [ebp - 0x18], 0
jbe 0x42e3fa
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x5c], eax
xor eax, eax
jne 0x42e3c4
xor eax, eax
jne 0x42e3c4
cmp dword [ebp - 0x60], 0
jne 0x42e3d8
lea eax, [ebp - 0x58]
mov dword [ebp - 0x60], eax
push 0
push dword [ebp - 0x60]
push dword [ebp - 0x18]
push dword [ebp - 0x5c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x42e3fa
call fcn.0042e6ec
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
mov ecx, dword [ecx + 0x40]
mov dword [eax + 0x48], ecx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
mov ecx, dword [ecx + 0x40]
mov dword [eax + 0x4c], ecx
mov eax, dword [ebp - 0x64]
and dword [eax + 0x50], 0
mov byte [ebp - 0x21], 1
mov dword [ebp - 4], 6
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x42e441
cmp dword [ebp - 0x10], 0
je 0x42e441
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4