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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525657
mov eax, dword fs:[0]
push eax
sub esp, 0x77c
mov eax, dword [0x55e5f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x508]
call fcn.004381c0
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x508]
call fcn.00440200
lea ecx, [ebp - 0x400]
push ecx
lea ecx, [ebp - 0x19c]
call fcn.004355b0
mov byte [ebp - 4], 1
mov dword [ebp - 0x73c], 0
mov dword [ebp - 0x740], 0
call fcn.0043ae20
push eax
lea ecx, [ebp - 0x94]
call fcn.004355b0
mov byte [ebp - 4], 2
call fcn.0043ae40
mov ecx, eax
call fcn.004366a0
movzx edx, al
test edx, edx
je 0x45e809
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00435b30
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.004076f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x748], eax
cmp dword [ebp - 0x748], 0xffffffff
jne 0x45e72f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.004357e0
jmp 0x45eaa2
push 0
mov ecx, dword [ebp - 0x748]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x740], eax
cmp dword [ebp - 0x740], 0
jne 0x45e761
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.004357e0
jmp 0x45eaa2
mov dword [ebp - 0x754], 0
mov edx, dword [ebp - 0x740]
push edx
call fcn.004f4ea6
add esp, 4
mov dword [ebp - 0x768], eax
mov eax, dword [ebp - 0x768]
mov dword [ebp - 0x73c], eax
push 0
lea ecx, [ebp - 0x754]
push ecx
mov edx, dword [ebp - 0x740]
push edx
mov eax, dword [ebp - 0x73c]
push eax
mov ecx, dword [ebp - 0x748]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x748]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x754]
cmp eax, dword [ebp - 0x740]
je 0x45e804
mov ecx, dword [ebp - 0x73c]
mov dword [ebp - 0x76c], ecx
mov edx, dword [ebp - 0x76c]
push edx
call fcn.004f4eaf
add esp, 4
mov dword [ebp - 0x73c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.004357e0
jmp 0x45eaa2
jmp 0x45ea8b
call fcn.0043ae40
push eax
lea ecx, [ebp - 0x94]
call fcn.00435b30
mov dword [ebp - 0x744], 0
call fcn.0043b230
movzx eax, al
test eax, eax
je 0x45e840
call fcn.0043ae50
mov dword [ebp - 0x744], eax
jmp 0x45e8c5
call fcn.0043ae60
push eax
lea ecx, [ebp - 0x220]
call fcn.004355b0
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x220]
call fcn.004076f0
push eax
call fcn.00443b30
add esp, 8
mov dword [ebp - 0x750], eax
mov ecx, dword [ebp - 0x750]
push ecx
lea ecx, [ebp - 0x94]
call fcn.004076f0
push eax
call fcn.0042e560
add esp, 8
mov dword [ebp - 0x744], eax
cmp dword [ebp - 0x750], 0
je 0x45e8b6
mov edx, dword [ebp - 0x750]
mov dword [ebp - 0x770], edx
mov eax, dword [ebp - 0x770]
push eax
call fcn.004f4eaf
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.004357e0
cmp dword [ebp - 0x744], 0
jne 0x45e8e2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.004357e0
jmp 0x45eaa2
mov dword [ebp - 0x758], 0
lea ecx, [ebp - 0x19c]
push ecx
lea ecx, [ebp - 0x118]
call fcn.004355b0
mov byte [ebp - 4], 4
push 0x530f1c
push 0x530c50
lea ecx, [ebp - 0x118]
call fcn.00436a80
lea edx, [ebp - 0x738]
push edx
lea eax, [ebp - 0x758]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.004076f0
push eax
mov ecx, dword [ebp - 0x744]
push ecx
call fcn.0042d850
add esp, 0x14
test eax, eax
je 0x45e969
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.004357e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.004357e0
jmp 0x45eaa2
mov edx, dword [ebp - 0x50c]
mov dword [ebp - 0x740], edx
cmp dword [ebp - 0x740], 0
jne 0x45e9a1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.004357e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.004357e0
jmp 0x45eaa2
mov eax, dword [ebp - 0x740]
push eax
call fcn.004f4ea6
add esp, 4
mov dword [ebp - 0x774], eax
mov ecx, dword [ebp - 0x774]
mov dword [ebp - 0x73c], ecx
mov edx, dword [ebp - 0x740]
push edx
mov eax, dword [ebp - 0x73c]
push eax
mov ecx, dword [ebp - 0x758]
push ecx
mov edx, dword [ebp - 0x744]
push edx
call fcn.0042edf0
add esp, 0x10
mov dword [ebp - 0x75c], eax
cmp dword [ebp - 0x75c], 0
je 0x45ea61
cmp dword [ebp - 0x75c], 0x600
je 0x45ea61
mov eax, dword [ebp - 0x73c]
mov dword [ebp - 0x778], eax
mov ecx, dword [ebp - 0x778]
push ecx
call fcn.004f4eaf
add esp, 4
mov dword [ebp - 0x73c], 0
call fcn.0043b230
movzx edx, al
test edx, edx
jne 0x45ea41
mov eax, dword [ebp - 0x744]
push eax
call fcn.0042d470
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.004357e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.004357e0
jmp 0x45eaa2
call fcn.0043b230
movzx ecx, al
test ecx, ecx
jne 0x45ea7c
mov edx, dword [ebp - 0x744]
push edx
call fcn.0042d470
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.004357e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.004357e0
xor eax, eax
jne 0x45e6aa
cmp dword [ebp - 0x73c], 0
jne 0x45eba0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x19c]
call fcn.004076f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x74c], eax
cmp dword [ebp - 0x74c], 0xffffffff
jne 0x45eae7
jmp 0x45eba0
push 0
mov ecx, dword [ebp - 0x74c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x740], eax
cmp dword [ebp - 0x740], 0
jne 0x45eb0a
jmp 0x45eba0
mov dword [ebp - 0x760], 0
mov edx, dword [ebp - 0x740]
push edx
call fcn.004f4ea6
add esp, 4
mov dword [ebp - 0x77c], eax
mov eax, dword [ebp - 0x77c]
mov dword [ebp - 0x73c], eax
push 0
lea ecx, [ebp - 0x760]
push ecx
mov edx, dword [ebp - 0x740]
push edx
mov eax, dword [ebp - 0x73c]
push eax
mov ecx, dword [ebp - 0x74c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x74c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x760]
cmp eax, dword [ebp - 0x740]
je 0x45eb99
mov ecx, dword [ebp - 0x73c]
mov dword [ebp - 0x780], ecx
mov edx, dword [ebp - 0x780]
push edx
call fcn.004f4eaf
add esp, 4
mov dword [ebp - 0x73c], 0
jmp 0x45eba0
mov dword [ebp - 0x764], 0
cmp dword [ebp - 0x73c], 0
je 0x45ebf4
mov eax, dword [ebp - 0x740]
push eax
mov ecx, dword [ebp - 0x73c]
push ecx
call fcn.0045e520
add esp, 8
mov dword [ebp - 0x764], eax
mov edx, dword [ebp - 0x73c]
mov dword [ebp - 0x784], edx
mov eax, dword [ebp - 0x784]
push eax
call fcn.004f4eaf
add esp, 4
mov dword [ebp - 0x73c], 0
mov ecx, dword [ebp - 0x764]
mov dword [ebp - 0x788], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x19c]
call fcn.004357e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.00438870
mov eax, dword [ebp - 0x788]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f4e42
mov esp, ebp
pop ebp
ret