Function at 0x437350
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a01a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4c448c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 4
push 0
push 3
push SysReAllocString
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4373e4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0xd74
jb 0x4373dd
push eax
call fcn.0047125f
mov edx, dword [ebp - 0x10]
add esp, 4
push 0
lea ecx, [ebp - 0x10]
push ecx
mov ebx, eax
push edx
push ebx
push esi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4373fa
push ebx
call fcn.00472958
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call edi
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
jne 0x437442
push ebx
call fcn.00472958
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
lea ecx, [ebp - 0x24]
push ecx
push 2
lea edx, [ebp + 0xc]
push edx
push edi
mov word [ebp + 0xc], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, 0x983b773b
mul dword [ebp - 0x10]
shr edx, 0xb
mov dword [ebp - 0x1c], 0
test edx, edx
je 0x4375ea
lea esi, [ebx + 0xd70]
jmp 0x437490
mov eax, dword [esi - 0xd68]
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ecx + 0x18]
call fcn.004649d0
lea edx, [ebp - 0x14]
push edx
mov ecx, eax
call fcn.00402ba0
mov dword [ebp - 4], 0
cmp dword [esi], 0x9090
mov eax, dword [ebp - 0x14]
jne 0x4375c7
cmp dword [eax - 0xc], 0
je 0x4375c7
mov eax, dword [0x4c41fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c41fc
call edx
add eax, 0x10
mov dword [ebp + 0x10], eax
lea eax, [esi - 0x402]
push eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
lea ecx, [esi - 0x702]
push ecx
mov ecx, dword [esi - 0xd64]
push edx
lea eax, [esi - 0x90c]
push eax
push ecx
lea edx, [esi - 0xb16]
push edx
lea eax, [esi - 0xd20]
push eax
lea ecx, [esi - 0xd60]
push ecx
push str._s__s__s__u__s__s__s__s_r_n
lea edi, [ebp + 0x10]
call fcn.004020e0
mov edi, dword [ebp + 0x10]
mov ebx, dword [edi - 0xc]
add esp, 0x24
cmp dword [edi - 4], 1
jle 0x437544
push ebx
lea eax, [ebp + 0x10]
push eax
call fcn.00401ff0
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebx + ebx]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437579
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43759f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
mov eax, 0x983b773b
mul dword [ebp - 0x10]
inc ecx
shr edx, 0xb
add esi, 0xd74
mov dword [ebp - 0x1c], ecx
cmp ecx, edx
jb 0x437490
jmp 0x4375ea
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4375ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00472958
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc