Function at 0x4c5450
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x610dbb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x69e3d4]
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 0x80
push 3
push ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x4c5532
push 0x2210
call fcn.005655ab
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
cmp ebp, ebx
mov dword [esp + 0x2c], ebx
je 0x4c54ee
push 0x4c4fd0
push 0x4c4fb0
push 0x100
push 0x20
lea ecx, [ebp + 0x210]
push ecx
call fcn.005a7353
mov dword [ebp], ebx
mov byte [ebp + 0x108], bl
mov byte [ebp + 4], bl
mov dword [ebp + 0x20c], ebx
jmp 0x4c54f0
xor ebp, ebp
mov esi, edi
mov dword [esp + 0x2c], 0xffffffff
call fcn.004c5330
cmp eax, 0xffffffff
mov dword [ebp + 0x20c], eax
jne 0x4c5548
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x4c4fd0
push 0x100
push 0x20
lea edx, [ebp + 0x210]
push edx
call fcn.005a5d0a
push ebp
call fcn.005655db
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 0x641d28
lea edx, [ebp + 0x108]
push edx
call esi
mov eax, dword [ebp + 0x20c]
shl eax, 4
push eax
call fcn.005a854a
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x14], esi
jne 0x4c55a7
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, ebp
call fcn.004c5780
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 0x4c5583
mov eax, dword [ebp + 0x20c]
mov ecx, eax
shl ecx, 4
cmp dword [esp + 0x18], ecx
jne 0x4c5583
cmp eax, ebx
mov dword [esp + 0x20], ebx
jbe 0x4c567f
add esi, 8
lea ebx, [ebp + 0x21c]
lea esp, [esp]
mov edx, dword [esi]
push edx
call fcn.005a854a
add esp, 4
test eax, eax
mov dword [ebx], eax
je 0x4c56a5
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 0x4c56d6
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 0x4c5707
mov edx, dword [esp + 0x18]
cmp edx, dword [esi]
jne 0x4c5738
lea edi, [ebx - 0xc]
call fcn.004c53f0
test eax, eax
je 0x4c5769
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 0x4c55f0
mov esi, dword [esp + 0x14]
push esi
call fcn.005a8a7b
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.004c5780
mov eax, dword [esp + 0x14]
push eax
call fcn.005a8a7b
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.004c5780
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005a8a7b
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.004c5780
mov edx, dword [esp + 0x14]
push edx
call fcn.005a8a7b
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.005a8a7b
add esp, 4
mov esi, ebp
call fcn.004c5780
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 0x4c5744