Function at 0x45405f
Capabilities:
Read file on windows

Disassembly:
push 0x70
mov eax, 0x4a8056
call fcn.0045a829
mov edi, ecx
mov dword [ebp - 0x74], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x68], ebx
or dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x70], esi
cmp esi, 0xffffffff
je 0x454244
lea ecx, [ebp - 0x60]
call fcn.00412933
push ebx
lea eax, [ebp - 0x6c]
push eax
push 0x18
lea eax, [ebp - 0x58]
push eax
push esi
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x454244
cmp dword [ebp - 0x4c], ebx
je 0x4541e4
mov dword [ebp - 0x5c], ebx
push dword [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00459406
mov esi, eax
mov dword [ebp - 0x78], esi
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x8004
push dword [edi]
mov byte [ebp - 4], 3
call fcn.00453446
add esp, 0x18
test eax, eax
je 0x454137
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x48]
push esi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x454137
push ebx
push dword [ebp - 0x48]
push esi
push dword [ebp - 0x5c]
call fcn.00453533
add esp, 0x10
test eax, eax
jne 0x454142
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x78], eax
jmp 0x4541b1
push 1
lea eax, [ebp - 0x61]
push eax
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x40]
call fcn.004091b8
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00412e19
push ebx
push edi
push eax
push dword [ebp - 0x5c]
call fcn.00453533
add esp, 0x10
test eax, eax
jne 0x454182
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x78], eax
jmp 0x4541a9
mov edi, dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 0x5c]
push 0x6801
push dword [edi]
call fcn.00453471
add esp, 0x14
test eax, eax
jne 0x4541c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x78], eax
lea ecx, [ebp - 0x40]
call fcn.00401b80
push esi
call fcn.0045907e
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00453955
jmp 0x45424d
lea ecx, [ebp - 0x40]
call fcn.00401b80
push esi
call fcn.0045907e
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00453955
push dword [ebp - 0x44]
call fcn.00459406
mov esi, eax
pop ecx
mov dword [ebp - 0x78], esi
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x44]
mov byte [ebp - 4], 5
push esi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45422e
xor ecx, ecx
cmp dword [ebp - 0x4c], ecx
lea eax, [edi + 4]
cmovne ecx, dword [ebp - 0x68]
push eax
push 0x10
push ecx
push dword [ebp - 0x44]
push esi
push dword [edi]
call fcn.0045355b
add esp, 0x18
test eax, eax
jne 0x454239
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x78], eax
jmp 0x45423b
mov bl, 1
push esi
call fcn.0045907e
pop ecx
jmp 0x45424d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x78], eax
lea ecx, [ebp - 0x60]
call fcn.00412933
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00453973
mov al, bl
call fcn.0045a7d8
ret 8