Function at 0x45c410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x10], edi
jne 0x45c444
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 0x230
call fcn.005663ab
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45c467
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov esi, edi
call fcn.0045c710
cmp eax, 0xffffffff
mov dword [ebx + 0x20c], eax
je 0x45c495
add eax, 0xffffffff
shl eax, 5
add eax, 0x230
push eax
push ebx
call fcn.00566f1c
mov esi, eax
add esp, 8
test esi, esi
jne 0x45c4ae
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0056646e
add esp, 4
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ecx
lea edx, [esi + 4]
push edx
call ebx
push 0x57e81c
lea eax, [esi + 0x108]
push eax
call ebx
mov ecx, dword [esi + 0x20c]
shl ecx, 4
push ecx
call fcn.005663ab
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 4], ebx
je 0x45c513
mov eax, dword [esi + 0x20c]
push 0
lea edx, [ebp - 0xc]
push edx
shl eax, 4
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45c513
mov eax, dword [esi + 0x20c]
mov ecx, eax
shl ecx, 4
cmp dword [ebp - 0xc], ecx
je 0x45c52c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0056646e
add esp, 4
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
test eax, eax
mov dword [ebp - 0x14], 0
jbe 0x45c5da
lea edx, [esi + 0x21c]
add ebx, 8
mov dword [ebp - 8], edx
mov eax, dword [ebx]
push eax
call fcn.005663ab
mov ecx, dword [ebp - 8]
add esp, 4
test eax, eax
mov dword [ecx], eax
je 0x45c5fa
mov edx, dword [ebx]
push 0
mov dword [ecx + 4], edx
mov eax, dword [ebx + 4]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x45c61c
mov edx, dword [ebx]
mov eax, dword [ebp - 8]
push 0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [eax]
push edx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45c63e
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebx]
jne 0x45c660
mov edi, dword [ebp - 8]
add edi, 0xfffffff4
call fcn.0045c6a0
test eax, eax
je 0x45c66d
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x20
mov edi, dword [ebp - 0x10]
add eax, 1
add ebx, 0x10
cmp eax, dword [esi + 0x20c]
mov dword [ebp - 0x14], eax
jb 0x45c547
mov ebx, dword [ebp - 4]
push ebx
call fcn.0056646e
push 0
call fcn.0056646e
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0056646e
mov eax, dword [ebp - 4]
push eax
call fcn.0056646e
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0056646e
mov ecx, dword [ebp - 4]
push ecx
call fcn.0056646e
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0056646e
mov edx, dword [ebp - 4]
push edx
call fcn.0056646e
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
jmp 0x45c67b
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push edx
call fcn.0056646e
push esi
call fcn.0056646e
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret