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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49784b
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x4b3da0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x314], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.00419020
push eax
lea ecx, [ebp - 0xa4]
call fcn.00422f00
mov dword [ebp - 4], 0
call fcn.00419030
mov ecx, eax
call fcn.00423160
movzx eax, al
test eax, eax
je 0x45bf4c
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.00423270
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xa4]
call fcn.00422e30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0xffffffff
jne 0x45be87
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00422f40
jmp 0x45c0fb
push 0
mov edx, dword [ebp - 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x45beb6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00422f40
jmp 0x45c0fb
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.004182b2
add esp, 4
mov dword [ebp - 0x2f8], eax
mov ecx, dword [ebp - 0x2f8]
mov dword [ebp - 0x10], ecx
push 0
lea edx, [ebp - 0xac]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xac]
cmp ecx, dword [ebp - 0x14]
je 0x45bf47
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2fc], edx
mov eax, dword [ebp - 0x2fc]
push eax
call fcn.0047f38b
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00422f40
jmp 0x45c0fb
jmp 0x45c0e1
call fcn.00419030
push eax
lea ecx, [ebp - 0xa4]
call fcn.00423240
mov dword [ebp - 0xb4], 0
call fcn.00419040
movzx ecx, al
test ecx, ecx
je 0x45bf80
call fcn.00419050
mov dword [ebp - 0xb4], eax
jmp 0x45bfa0
call fcn.00419060
push eax
lea ecx, [ebp - 0xa4]
call fcn.00422e30
push eax
call fcn.00416bd0
add esp, 8
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jne 0x45bfc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00422f40
jmp 0x45c0fb
lea edx, [ebp - 0x2ec]
push edx
lea eax, [ebp - 0xb8]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
call fcn.00416ca0
add esp, 0x14
test eax, eax
je 0x45bffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00422f40
jmp 0x45c0fb
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x45c024
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00422f40
jmp 0x45c0fb
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004182b2
add esp, 4
mov dword [ebp - 0x300], eax
mov edx, dword [ebp - 0x300]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0xb4]
push eax
call fcn.00416da0
add esp, 0x10
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
je 0x45c0c6
cmp dword [ebp - 0xb0], 0x600
je 0x45c0c6
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x304], ecx
mov edx, dword [ebp - 0x304]
push edx
call fcn.0047f38b
add esp, 4
mov dword [ebp - 0x10], 0
call fcn.00419040
movzx eax, al
test eax, eax
jne 0x45c0b2
mov ecx, dword [ebp - 0xb4]
push ecx
call fcn.00416e20
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00422f40
jmp 0x45c0fb
call fcn.00419040
movzx edx, al
test edx, edx
jne 0x45c0e1
mov eax, dword [ebp - 0xb4]
push eax
call fcn.00416e20
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00422f40
xor ecx, ecx
jne 0x45bdff
cmp dword [ebp - 0x10], 0
jne 0x45c1e0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2f0], eax
cmp dword [ebp - 0x2f0], 0xffffffff
jne 0x45c135
jmp 0x45c1e0
push 0
mov eax, dword [ebp - 0x2f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x45c15f
mov ecx, dword [ebp - 0x2f0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45c1e0
mov dword [ebp - 0x2f4], 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.004182b2
add esp, 4
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x308]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0x2f4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2f0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x2f0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2f4]
cmp eax, dword [ebp - 0x14]
je 0x45c1d9
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30c], ecx
mov edx, dword [ebp - 0x30c]
push edx
call fcn.0047f38b
add esp, 4
mov dword [ebp - 0x10], 0
jmp 0x45c1e0
cmp dword [ebp - 0x10], 0
jne 0x45c1ea
xor eax, eax
jmp 0x45c21b
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x314]
call fcn.0045c240
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x310], edx
mov eax, dword [ebp - 0x310]
push eax
call fcn.0047f38b
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0047dd71
mov esp, ebp
pop ebp
ret 4