Function at 0x436121
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x308
mov eax, 0x497cb5
call fcn.00466cfd
mov ebx, edx
mov dword [ebp - 0x308], ebx
mov dword [ebp - 0x310], ecx
xor esi, esi
lea ecx, [ebp - 0xd0]
push 0x4c16e8
mov dword [ebp - 0x314], esi
call fcn.00420dc7
mov dword [ebp - 4], esi
mov eax, dword [0x4c1770]
cmp word [eax], si
jne 0x43620b
test ebx, ebx
je 0x436177
push ebx
lea ecx, [ebp - 0xd0]
call fcn.00420e0d
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4361ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.00420dec
jmp 0x4362e5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x43619a
push edi
mov dword [ebp - 0x30c], esi
call fcn.0045ed6b
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x30c]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30c], edi
je 0x4362cc
push esi
call fcn.004607be
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.00420dec
jmp 0x4362e3
push eax
lea ecx, [ebp - 0xd0]
call fcn.00420e0d
cmp byte [0x4c1690], 0
je 0x436228
mov ebx, dword [0x4c7598]
jmp 0x43623a
mov ecx, dword [ebp - 0xd0]
xor edx, edx
push 2
call fcn.0043248b
pop ecx
mov ebx, eax
test ebx, ebx
je 0x43619a
mov edx, dword [ebp - 0x308]
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x304]
push eax
push ecx
mov ecx, ebx
call fcn.004324ed
add esp, 0xc
test eax, eax
jne 0x43619a
mov edi, dword [ebp - 0xd4]
test edi, edi
je 0x43619a
push edi
call fcn.0045ed6b
mov edx, dword [ebp - 0x304]
mov esi, eax
push edi
push esi
mov ecx, ebx
call fcn.004325c0
add esp, 0xc
test eax, eax
je 0x4362bc
cmp eax, 0x600
je 0x4362bc
push esi
call fcn.004607be
cmp byte [0x4c1690], 0
pop ecx
jne 0x4361f7
mov ecx, ebx
call fcn.004325f3
jmp 0x4361f7
cmp byte [0x4c1690], 0
jne 0x4362cc
mov ecx, ebx
call fcn.004325f3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.00420dec
test esi, esi
jne 0x436380
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp - 0x308]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x436353
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x436353
push edi
mov dword [ebp - 0x304], esi
call fcn.0045ed6b
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x304]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x304], edi
je 0x43634f
push esi
call fcn.004607be
pop ecx
xor esi, esi
test esi, esi
jne 0x436380
mov edx, dword [ebp - 0x308]
lea ecx, [ebp - 0x48]
call fcn.0043534f
cmp dword [ebp - 0x34], 0x10
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x38]
cmovae ecx, dword [ebp - 0x48]
call fcn.00421683
lea ecx, [ebp - 0x48]
mov ebx, eax
call fcn.00405290
jmp 0x436392
mov edx, edi
mov ecx, esi
call fcn.00421683
push esi
mov ebx, eax
call fcn.004607be
pop ecx
push 7
xor eax, eax
lea edi, [ebp - 0x2e]
pop ecx
mov word [ebp - 0x30], ax
rep stosd dword es:[edi], eax
push ebx
push str._08x
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
call fcn.004255a8
mov ecx, dword [ebp - 0x310]
lea eax, [ebp - 0x30]
add esp, 0xc
push 0xffffffffffffffff
push eax
call fcn.00420da3
mov eax, dword [ebp - 0x310]
call fcn.00466cbb
ret