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

Disassembly:
push 0xffffffffffffffff
push 0x479793
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov eax, dword [0x49afa0]
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 0xc]
xor ebp, ebp
cmp eax, ebp
push esi
push edi
jne 0x43383a
xor edi, edi
jmp 0x433850
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, 0x47fbc4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0xa4], 1
mov dword [esp + 0x18], edi
call dword [0x47fbcc]
cmp edi, ebp
jle 0x43397e
xor esi, esi
mov ebp, edi
mov edi, dword [ebx + 0xc]
mov eax, dword [esi + edi + 0x18]
mov edx, dword [esp + 0x2c]
push 2
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], eax
call dword [edx + 8]
cmp dword [esi + edi + 0x1c], 0x10
mov ecx, dword [esi + edi + 0x18]
jb 0x4338bf
mov eax, dword [esi + edi + 8]
jmp 0x4338c3
lea eax, [esi + edi + 8]
push ecx
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x34]
call dword [eax + 8]
movzx ecx, word [esi + edi + 0x20]
mov eax, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x34]
call dword [eax + 8]
mov ecx, dword [esi + edi + 0x24]
mov eax, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x34]
call dword [eax + 8]
mov ecx, dword [esi + edi + 0x2c]
mov eax, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x34]
call dword [eax + 8]
mov ecx, dword [esi + edi + 0x28]
mov eax, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x34]
call dword [eax + 8]
mov ecx, dword [esi + edi + 0x30]
mov eax, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x34]
call dword [eax + 8]
mov ecx, dword [esi + edi + 0x34]
mov eax, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x34]
call dword [eax + 8]
add esi, 0x48
dec ebp
jne 0x433891
xor ebp, ebp
mov esi, 0x47fbc4
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
lea ecx, [esp + 0x70]
mov byte [esp + 0x9c], 3
call fcn.004373e0
mov ecx, dword [0x498bf0]
push ebp
push ecx
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa8], 4
call fcn.004372d0
lea ecx, [esp + 0x1c]
call fcn.004375b0
push ebp
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 5
call fcn.00437420
mov al, byte [ebx + 0x4c]
xor ecx, ecx
test al, al
mov eax, dword [esp + 0x1c]
setne cl
push 4
lea edx, [esp + 0x14]
push edx
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x24]
call dword [eax + 8]
mov edx, dword [esp + 0x1c]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebp
call dword [edx + 8]
mov eax, dword [esp + 0x34]
cmp eax, ebp
jne 0x433a22
mov dword [esp + 0x10], ebp
jmp 0x433a2c
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
call dword [eax + 8]
mov edx, dword [esp + 0x1c]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 1
call dword [edx + 8]
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
jne 0x433a64
xor eax, eax
jmp 0x433a6a
mov eax, dword [esp + 0x38]
sub eax, ecx
push eax
mov eax, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x24]
call dword [eax + 8]
mov al, byte [ebx + 0x4c]
test al, al
je 0x433c17
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov ecx, dword [ebx + 0x44]
push 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0xa4], 7
call dword [0x47fbcc]
mov eax, dword [ebx + 0x48]
mov edx, dword [esp + 0x40]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], eax
call dword [edx + 8]
mov eax, dword [ebx + 0x40]
mov edx, dword [esp + 0x40]
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x48]
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 0x433b7d
mov edi, dword [esi + 0x20]
mov edx, dword [esp + 0x40]
push 2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], edi
call dword [edx + 8]
cmp dword [esi + 0x24], 0x10
jb 0x433b19
mov eax, dword [esi + 0x10]
jmp 0x433b1c
lea eax, [esi + 0x10]
mov edx, dword [esp + 0x40]
movzx ecx, di
push ecx
push eax
lea ecx, [esp + 0x48]
call dword [edx + 8]
mov al, byte [esi + 0x29]
test al, al
jne 0x433b73
mov eax, dword [esi + 8]
mov cl, byte [eax + 0x29]
test cl, cl
jne 0x433b55
mov esi, eax
mov eax, dword [esi]
mov cl, byte [eax + 0x29]
test cl, cl
jne 0x433b73
mov esi, eax
mov eax, dword [esi]
mov cl, byte [eax + 0x29]
test cl, cl
je 0x433b48
jmp 0x433b73
mov eax, dword [esi + 4]
mov cl, byte [eax + 0x29]
test cl, cl
jne 0x433b71
nop
cmp esi, dword [eax + 8]
jne 0x433b71
mov esi, eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x29]
test cl, cl
je 0x433b60
mov esi, eax
cmp esi, dword [esp + 0x14]
jne 0x433af5
mov edx, dword [esp + 0x1c]
push 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 1
call dword [edx + 8]
mov eax, dword [esp + 0x48]
cmp eax, ebp
jne 0x433ba5
mov dword [esp + 0x10], ebp
jmp 0x433baf
mov ecx, dword [esp + 0x4c]
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
call dword [eax + 8]
mov edx, dword [esp + 0x1c]
push 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebp
call dword [edx + 8]
mov ecx, dword [esp + 0x48]
cmp ecx, ebp
jne 0x433be3
xor eax, eax
jmp 0x433be9
mov eax, dword [esp + 0x4c]
sub eax, ecx
push eax
mov eax, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x24]
call dword [eax + 8]
mov eax, dword [esp + 0x48]
cmp eax, ebp
mov byte [esp + 0x9c], 5
mov dword [esp + 0x40], 0x47fbc4
je 0x433c17
push eax
call fcn.00468d00
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00437510
mov eax, dword [esp + 0x5c]
cmp eax, ebp
jne 0x433c2c
xor esi, esi
jmp 0x433c32
mov esi, dword [esp + 0x60]
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 0x433c5e
call fcn.004013c0
cmp eax, ebp
jge 0x433c5a
jmp fcn.004315d0
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 0x433c7b
jmp fcn.004315d0
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x433c8e
jmp fcn.004315d0
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 0x433cba
call fcn.004013c0
test eax, eax
jge 0x433cba
jmp fcn.004315d0
mov edx, dword [esp + 0x5c]
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 0x433ce7
call fcn.004013c0
cmp eax, ebp
jge 0x433ce7
jmp fcn.004315d0
mov eax, dword [ebx + 4]
push ebp
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x74]
push edx
xor esi, 0x4076551f
push eax
mov dword [esp + 0x7c], esi
call edi
cmp eax, ebp
jne 0x433d16
call fcn.004013c0
cmp eax, ebp
jge 0x433d16
jmp fcn.004315d0
mov eax, dword [ebx + 4]
push ebp
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x80], 0x52414e
call edi
cmp eax, ebp
jne 0x433d46
call fcn.004013c0
cmp eax, ebp
jge 0x433d46
jmp fcn.004315d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 4
call fcn.00437600
lea ecx, [esp + 0x70]
mov byte [esp + 0x9c], 3
call fcn.00437270
mov eax, dword [esp + 0x5c]
cmp eax, ebp
mov esi, 0x47fbc4
mov dword [esp + 0x54], esi
je 0x433d82
push eax
call fcn.00468d00
add esp, 4
mov eax, dword [esp + 0x34]
cmp eax, ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x54], 0x47b878
mov dword [esp + 0x2c], esi
je 0x433dab
push eax
call fcn.00468d00
add esp, 4
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x84]
mov al, 1
pop ebx
call fcn.004497f7
add esp, 0x90
ret