Function at 0x42bbc0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push esi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x42bbe9
cmp dword [ebp + 0x10], 0
je 0x42bbe9
cmp dword [ebp + 0xc], 0
je 0x42bbe9
cmp dword [ebp + 0x14], 0
jne 0x42bbf3
mov eax, 0x57
jmp 0x42bf3b
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042afc0
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42bc21
mov edx, dword [ebp + 0x24]
and edx, 0x80000000
jne 0x42bc21
mov eax, 0xb7
jmp 0x42bf3b
cmp dword [ebp - 0x1c], 0
jne 0x42bc4a
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042aef0
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42bc4a
mov eax, 0x27
jmp 0x42bf3b
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x24]
mov dword [edx + 0x1c], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040b750
add esp, 4
mov edx, dword [ebp + 0x14]
lea eax, [eax + edx + 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, 0x120
call fcn.004016a0
test eax, eax
jbe 0x42bdde
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x120
call fcn.00401640
jmp 0x42bcb2
lea ecx, [ebp - 0x30]
call fcn.00402090
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x120
call fcn.00401670
push eax
lea ecx, [ebp - 0x30]
call fcn.00403af0
movzx eax, al
test eax, eax
je 0x42bdde
lea ecx, [ebp - 0x30]
call fcn.00402070
mov ecx, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x8c]
jl 0x42bdd9
jg 0x42bd22
mov edx, dword [ebp - 0x88]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x90]
jb 0x42bdd9
lea ecx, [ebp - 0x30]
call fcn.00402070
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x30]
call fcn.00402070
mov ecx, dword [ebp - 4]
xor edx, edx
mov esi, dword [eax]
sub esi, ecx
mov eax, dword [eax + 4]
sbb eax, edx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x42bdae
jg 0x42bd60
cmp dword [ebp - 0x38], 0
jbe 0x42bdae
mov ecx, dword [ebp - 4]
xor edx, edx
add ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
adc eax, edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004041b0
add esp, 0x14
push eax
lea ecx, [ebp - 0x58]
call fcn.004041d0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x120
call fcn.004016c0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x120
call fcn.00401890
jmp 0x42bdde
jmp 0x42bcaa
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040b750
add esp, 4
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x14]
je 0x42be78
mov eax, 0x70
jmp 0x42bf3b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x18]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
or ecx, 0x80000000
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040b750
add esp, 4
add eax, 4
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
sub eax, dword [edx + 0x11c]
cdq
mov ecx, 0x28
idiv ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x28
add edx, 0xc
mov dword [ebp - 0xc], edx
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 0x28
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 8], 0x28
je 0x42bf39
mov eax, 0x70
jmp 0x42bf3b
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret