Function at 0x413eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.PAL.dll_PalTaskGetSubTaskData]
push 0x207
mov esi, eax
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.00422b50
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x413f3e
lea ecx, [esp + 0x20]
push ecx
push 0x42eb88
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0041eaa8
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esi + 0x328]
push eax
push ebx
call edi
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x104
lea edx, [esi + 0x204]
push edx
push ebx
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esi + 0x308]
push ecx
push ebx
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esi + 0xc5d28]
push eax
push ebx
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esi + 0x33c]
push ecx
push ebx
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esi + 0x30c]
push eax
push ebx
call edi
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esi + 0x310]
push edx
push ebx
call edi
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea eax, [esi + 0x318]
push eax
push ebx
call edi
mov edx, dword [esi + 0x318]
push 1
push 0
push 0
push edx
push ebx
call dword [sym.imp.PAL.dll_PalFileSetFilePointer]
add esp, 0x14
push 0
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esi + 0xbff10]
push ecx
push ebx
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 0x4004
lea eax, [esi + 0xc1524]
push eax
push ebx
call edi
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x7f8
lea edx, [esi + 0xc5528]
push edx
push ebx
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esi + 0xc5dc8]
push ecx
push ebx
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esi + 0xc5dcc]
push eax
push ebx
call edi
lea eax, [esi + 0xbfab0]
push eax
lea ecx, [esi + 0x71b24]
push ebx
call fcn.0040eb20
add esp, 8
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esi + 0x71a4c]
push edx
push ebx
call edi
push 0
lea eax, [esp + 0x18]
push eax
push 0xc
lea ecx, [esi + 0x71a50]
push ecx
push ebx
call edi
lea eax, [esi + 0xbfab0]
lea ecx, [esi + 0x7192c]
push eax
mov edi, ebx
call fcn.00408780
add esp, 4
lea eax, [esi + 0x7192c]
push eax
lea edi, [esi + 0xbfab0]
push ebx
mov ecx, edi
call fcn.004164f0
lea eax, [esi + 0x7192c]
push eax
push edi
mov edi, ebx
call fcn.0041cac0
lea eax, [esi + 0xbfab0]
lea edx, [esi + 0x354]
push eax
mov ecx, ebx
call fcn.004094d0
add esp, 0x14
push 0
lea edx, [esp + 0x18]
push edx
push 0x20
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esi + 0x11c424]
push eax
push ebx
call edi
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esi + 0x11c41c]
push edx
push ebx
call edi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esi + 0x11c420]
push ecx
push ebx
call edi
lea eax, [esi + 0xbfab0]
lea ecx, [esi + 8]
push eax
call fcn.00418e90
add esp, 4
push 0
lea edx, [esp + 0x18]
push edx
push 0x10
lea eax, [esi + 0x11c3e4]
push eax
push ebx
call edi
push ebx
mov dword [esi + 0x11c3ec], 1
call fcn.0040c830
lea eax, [esi + 0xc93f0]
add esp, 4
push eax
call fcn.00406a60
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esi + 0xc151c]
push edx
push ebx
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 0x40
lea ecx, [esi + 0xbfad4]
push ecx
push ebx
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push ebx
call edi
cmp dword [esp + 0x18], 0
je 0x41421d
sub dword [esp + 0x18], 1
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x28]
push edx
push ebx
call edi
mov eax, dword [esp + 0x1c]
push 1
push 8
mov dword [esp + 0x1c], eax
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
test eax, eax
je 0x414201
mov ecx, dword [esp + 0x14]
push 2
mov dword [eax], ecx
mov dword [eax + 4], 0
mov edx, dword [esi + 0xc5dc4]
push eax
push edx
call dword [sym.imp.PAL.dll_PalListPush]
add esp, 0xc
jmp 0x414216
mov eax, dword [esi + 0xc5d28]
push eax
push 0x42d58c
call dword [sym.imp.PAL.dll_PalErrorLogPrintf]
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x4141b0
sub dword [esp + 0x18], 1
push 0
lea ecx, [esp + 0x14]
push ecx
push 3
lea edx, [esp + 0x2c]
push edx
push ebx
call edi
mov edi, 0x42eb9c
lea esi, [esp + 0x20]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x414257
push 0x42eba0
push eax
push eax
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0041eaa8
mov esp, ebp
pop ebp
ret