Function at 0x4c27d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x608e9b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6963f4]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
xor ebx, ebx
push ebx
push pe_nt_image_headers32
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x4c28b2
push 0x2210
call fcn.0055dbcb
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
cmp ebp, ebx
mov dword [esp + 0x2c], ebx
je 0x4c286e
push 0x4c2350
push 0x4c2330
push 0x100
push 0x20
lea ecx, [ebp + 0x210]
push ecx
call fcn.0059fa83
mov dword [ebp], ebx
mov byte [ebp + 0x108], bl
mov byte [ebp + 4], bl
mov dword [ebp + 0x20c], ebx
jmp 0x4c2870
xor ebp, ebp
mov esi, edi
mov dword [esp + 0x2c], 0xffffffff
call fcn.004c26b0
cmp eax, 0xffffffff
mov dword [ebp + 0x20c], eax
jne 0x4c28c8
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x4c2350
push 0x100
push 0x20
lea edx, [ebp + 0x210]
push edx
call fcn.0059e47a
push ebp
call fcn.0055dbfb
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x34]
mov esi, dword [sym.imp.kernel32.dll_lstrcpy]
push eax
lea ecx, [ebp + 4]
push ecx
call esi
push 0x639ce8
lea edx, [ebp + 0x108]
push edx
call esi
mov eax, dword [ebp + 0x20c]
shl eax, 4
push eax
call fcn.005a0b1e
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x14], esi
jne 0x4c2927
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, ebp
call fcn.004c2b00
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [ebp + 0x20c]
push ebx
lea ecx, [esp + 0x1c]
push ecx
shl edx, 4
push edx
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4c2903
mov eax, dword [ebp + 0x20c]
mov ecx, eax
shl ecx, 4
cmp dword [esp + 0x18], ecx
jne 0x4c2903
cmp eax, ebx
mov dword [esp + 0x20], ebx
jbe 0x4c29ff
add esi, 8
lea ebx, [ebp + 0x21c]
lea esp, [esp]
mov edx, dword [esi]
push edx
call fcn.005a0b1e
add esp, 4
test eax, eax
mov dword [ebx], eax
je 0x4c2a25
mov eax, dword [esi]
push 0
mov dword [ebx + 4], eax
mov ecx, dword [esi + 4]
push 0
push ecx
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4c2a56
mov eax, dword [esi]
mov ecx, dword [ebx]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4c2a87
mov edx, dword [esp + 0x18]
cmp edx, dword [esi]
jne 0x4c2ab8
lea edi, [ebx - 0xc]
call fcn.004c2770
test eax, eax
je 0x4c2ae9
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
add eax, 1
add esi, 0x10
add ebx, 0x20
cmp eax, dword [ebp + 0x20c]
mov dword [esp + 0x20], eax
jb 0x4c2970
mov esi, dword [esp + 0x14]
push esi
call fcn.005a01b3
add esp, 4
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, ebp
call fcn.004c2b00
mov eax, dword [esp + 0x14]
push eax
call fcn.005a01b3
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, ebp
call fcn.004c2b00
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005a01b3
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, ebp
call fcn.004c2b00
mov edx, dword [esp + 0x14]
push edx
call fcn.005a01b3
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call fcn.005a01b3
add esp, 4
mov esi, ebp
call fcn.004c2b00
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
push edx
jmp 0x4c2ac4