Function at 0x403070
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41f9fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov eax, dword [0x4285e0]
mov ecx, dword [esp + 0x68]
xor eax, esp
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x60], eax
mov eax, dword [ecx]
push esi
call dword [eax + 0x14]
push eax
push 0
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.00404aa0
mov esi, eax
mov eax, dword [esp + 0x34]
add esp, 0x10
test eax, eax
mov dword [esp + 0x10], esi
je 0x4030d2
xor al, al
jmp 0x40332b
xor edx, edx
push ebx
mov dword [esp + 0x2c], edx
push 0x11000
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
push edi
push esi
mov dword [esp + 0x44], edx
call fcn.00403f90
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40310a
push esi
call fcn.004048e0
add esp, 4
xor al, al
jmp 0x40332a
push 8
lea eax, [esp + 0x30]
push eax
push edi
push esi
call fcn.00404380
xor edi, edi
add esp, 0x10
cmp eax, edi
je 0x403137
push ebx
call fcn.00403c00
push esi
call fcn.004048e0
add esp, 8
xor al, al
jmp 0x40332a
push edi
push 0x20
push 2
push edi
push 3
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x403121
cmp dword [esp + 0x34], edi
jle 0x403312
test byte [0x429898], 1
jne 0x403195
or dword [0x429898], 1
push 0x420000
mov dword [0x42988c], edi
mov dword [0x429890], edi
mov dword [0x429894], edi
call fcn.00411ce4
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov ecx, dword [0x42988c]
cmp ecx, edi
je 0x4031ad
mov eax, dword [0x429890]
sub eax, ecx
cmp eax, 0x1000
jae 0x4031bd
push edi
push 0x1000
mov ecx, 0x429888
call fcn.00402eb0
push edi
push edi
push ebx
call fcn.00404210
mov ecx, dword [0x42988c]
push 0x1000
push ecx
push ebx
call fcn.00403d40
mov ebp, eax
add esp, 0x18
cmp ebp, 0x28
mov byte [esp + 0x13], 0
jbe 0x403208
mov esi, dword [0x42988c]
lea edx, [esp + 0x3c]
mov ecx, 0xa
lea edi, [esp + 0x3c]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00402180
add esp, 4
mov byte [esp + 0x13], al
xor esi, esi
test ebp, ebp
je 0x403277
mov edi, edi
push ebx
add esi, ebp
call fcn.00403f60
mov ecx, dword [esp + 0x38]
add esp, 4
cmp eax, ecx
jge 0x403277
mov eax, dword [0x42988c]
test eax, eax
mov edx, dword [0x429890]
jne 0x403236
xor ecx, ecx
jmp 0x40323a
mov ecx, edx
sub ecx, eax
lea edi, [esi + 0x1000]
cmp ecx, edi
jae 0x403260
test eax, eax
je 0x40324c
sub edx, eax
mov eax, edx
push 0
add eax, eax
push eax
mov ecx, 0x429888
call fcn.00402eb0
mov eax, dword [0x42988c]
add eax, esi
push 0x1000
push eax
push ebx
call fcn.00403d40
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x403210
mov cl, byte [esp + 0x13]
test cl, cl
mov eax, dword [0x42988c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
je 0x4032ca
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push eax
call fcn.00402f70
add esp, 0x10
test al, al
jne 0x4032c6
push ebx
call fcn.00403c00
mov eax, dword [esp + 0x18]
push eax
call fcn.004048e0
mov ecx, dword [esp + 0x20]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40332a
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
push 0
lea edx, [esp + 0x28]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4032ec
cmp dword [esp + 0x24], esi
je 0x40330a
push ebx
call fcn.00403c00
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004048e0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40332a
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00403c00
push esi
call fcn.004048e0
add esp, 8
mov al, 1
pop ebx
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x58]
pop ebp
xor ecx, esp
call fcn.00410a75
add esp, 0x64
ret