Function at 0x4319d0
Capabilities:
Get file size
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4790a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov eax, dword [0x49ae1c]
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 0x8c], eax
mov eax, dword [ebx + 0xc]
xor ebp, ebp
cmp eax, ebp
push esi
push edi
jne 0x431a0a
xor edi, edi
jmp 0x431a20
mov ecx, dword [ebx + 0x10]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
mov esi, 0x47fc9c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0xa8], 1
mov dword [esp + 0x18], edi
call dword [0x47fca4]
cmp edi, ebp
jle 0x431b4e
xor esi, esi
mov ebp, edi
mov edi, dword [ebx + 0xc]
mov eax, dword [esi + edi + 0x18]
mov edx, dword [esp + 0x1c]
push 2
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], eax
call dword [edx + 8]
cmp dword [esi + edi + 0x1c], 0x10
mov ecx, dword [esi + edi + 0x18]
jb 0x431a8f
mov eax, dword [esi + edi + 8]
jmp 0x431a93
lea eax, [esi + edi + 8]
push ecx
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
call dword [eax + 8]
movzx ecx, word [esi + edi + 0x20]
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x24]
call dword [eax + 8]
mov ecx, dword [esi + edi + 0x24]
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x24]
call dword [eax + 8]
mov ecx, dword [esi + edi + 0x2c]
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x24]
call dword [eax + 8]
mov ecx, dword [esi + edi + 0x28]
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x24]
call dword [eax + 8]
mov ecx, dword [esi + edi + 0x30]
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x24]
call dword [eax + 8]
mov ecx, dword [esi + edi + 0x34]
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x24]
call dword [eax + 8]
add esi, 0x48
dec ebp
jne 0x431a61
xor ebp, ebp
mov esi, 0x47fc9c
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
lea ecx, [esp + 0x74]
mov byte [esp + 0xa0], 3
call fcn.004355c0
mov ecx, dword [0x498b38]
push ebp
push ecx
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x80]
mov byte [esp + 0xac], 4
call fcn.004354b0
lea ecx, [esp + 0x30]
call fcn.00435790
push ebp
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xa8], 5
call fcn.00435600
mov al, byte [ebx + 0x4c]
xor ecx, ecx
test al, al
mov eax, dword [esp + 0x30]
setne cl
push 4
lea edx, [esp + 0x14]
push edx
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x38]
call dword [eax + 8]
mov edx, dword [esp + 0x30]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ebp
call dword [edx + 8]
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x431bf5
mov dword [esp + 0x10], ebp
jmp 0x431bff
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x30]
push 4
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call dword [eax + 8]
mov edx, dword [esp + 0x30]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], 1
call dword [edx + 8]
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
jne 0x431c37
xor eax, eax
jmp 0x431c3d
mov eax, dword [esp + 0x28]
sub eax, ecx
push eax
mov eax, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x38]
call dword [eax + 8]
mov al, byte [ebx + 0x4c]
test al, al
je 0x431df7
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov ecx, dword [ebx + 0x44]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa8], 7
call dword [0x47fca4]
mov eax, dword [ebx + 0x48]
mov edx, dword [esp + 0x44]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], eax
call dword [edx + 8]
mov eax, dword [ebx + 0x40]
mov edx, dword [esp + 0x44]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], eax
call dword [edx + 8]
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax]
cmp esi, eax
mov dword [esp + 0x14], eax
je 0x431d5d
jmp 0x431cd0
mov edi, dword [esi + 0x20]
mov edx, dword [esp + 0x44]
push 2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], edi
call dword [edx + 8]
cmp dword [esi + 0x24], 0x10
jb 0x431cf4
mov eax, dword [esi + 0x10]
jmp 0x431cf7
lea eax, [esi + 0x10]
mov edx, dword [esp + 0x44]
movzx ecx, di
push ecx
push eax
lea ecx, [esp + 0x4c]
call dword [edx + 8]
mov al, byte [esi + 0x29]
test al, al
jne 0x431d53
mov eax, dword [esi + 8]
mov cl, byte [eax + 0x29]
test cl, cl
jne 0x431d30
mov esi, eax
mov eax, dword [esi]
mov cl, byte [eax + 0x29]
test cl, cl
jne 0x431d53
mov esi, eax
mov eax, dword [esi]
mov cl, byte [eax + 0x29]
test cl, cl
je 0x431d23
jmp 0x431d53
mov eax, dword [esi + 4]
mov cl, byte [eax + 0x29]
test cl, cl
jne 0x431d51
lea ebx, [ebx]
cmp esi, dword [eax + 8]
jne 0x431d51
mov esi, eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x29]
test cl, cl
je 0x431d40
mov esi, eax
cmp esi, dword [esp + 0x14]
jne 0x431cd0
mov edx, dword [esp + 0x30]
push 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], 1
call dword [edx + 8]
mov eax, dword [esp + 0x4c]
cmp eax, ebp
jne 0x431d85
mov dword [esp + 0x10], ebp
jmp 0x431d8f
mov ecx, dword [esp + 0x50]
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x30]
push 4
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call dword [eax + 8]
mov edx, dword [esp + 0x30]
push 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ebp
call dword [edx + 8]
mov ecx, dword [esp + 0x4c]
cmp ecx, ebp
jne 0x431dc3
xor eax, eax
jmp 0x431dc9
mov eax, dword [esp + 0x50]
sub eax, ecx
push eax
mov eax, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x38]
call dword [eax + 8]
mov eax, dword [esp + 0x4c]
cmp eax, ebp
mov byte [esp + 0xa0], 5
mov dword [esp + 0x44], 0x47fc9c
je 0x431df7
push eax
call fcn.00466af5
add esp, 4
lea ecx, [esp + 0x30]
call fcn.004356f0
mov eax, dword [esp + 0x60]
cmp eax, ebp
jne 0x431e0c
xor esi, esi
jmp 0x431e12
mov esi, dword [esp + 0x64]
sub esi, eax
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
jne 0x431e3e
call fcn.00401430
cmp eax, ebp
jge 0x431e3a
jmp fcn.0042f780
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 4]
push ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [edi + esi + 8]
push ecx
push eax
call ebp
cmp eax, 0xffffffff
jne 0x431e5b
jmp fcn.0042f780
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x431e6e
jmp fcn.0042f780
mov eax, edi
cdq
push 0
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 4]
push eax
call ebp
cmp eax, 0xffffffff
jne 0x431e9a
call fcn.00401430
test eax, eax
jge 0x431e9a
jmp fcn.0042f780
mov edx, dword [esp + 0x60]
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
call edi
xor ebp, ebp
cmp eax, ebp
jne 0x431ec7
call fcn.00401430
cmp eax, ebp
jge 0x431ec7
jmp fcn.0042f780
mov eax, dword [ebx + 4]
push ebp
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x78]
push edx
xor esi, 0x4076551f
push eax
mov dword [esp + 0x80], esi
call edi
cmp eax, ebp
jne 0x431ef9
call fcn.00401430
cmp eax, ebp
jge 0x431ef9
jmp fcn.0042f780
mov eax, dword [ebx + 4]
push ebp
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x7c]
push edx
push eax
mov dword [esp + 0x84], 0x52414e
call edi
cmp eax, ebp
jne 0x431f29
call fcn.00401430
cmp eax, ebp
jge 0x431f29
jmp fcn.0042f780
lea ecx, [esp + 0x30]
mov byte [esp + 0xa0], 4
call fcn.004357f0
lea ecx, [esp + 0x74]
mov byte [esp + 0xa0], 3
call fcn.00435450
mov eax, dword [esp + 0x60]
cmp eax, ebp
mov esi, 0x47fc9c
mov dword [esp + 0x58], esi
je 0x431f65
push eax
call fcn.00466af5
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x58], 0x47dbf4
mov dword [esp + 0x1c], esi
je 0x431f8e
push eax
call fcn.00466af5
add esp, 4
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x88]
mov al, 1
pop ebx
call fcn.00447453
add esp, 0x94
ret