Function at 0x40c830
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
push ebx
push esi
push edi
call dword [sym.imp.PAL.dll_PalTaskGetSubTaskData]
mov edx, dword [esp + 0x48]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x34
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [sym.imp.PAL.dll_PalDebugPrintf]
mov ebx, 1
test byte [esp + 0x10], bl
je 0x40c92d
mov eax, dword [esi + 0xc151c]
mov ecx, dword [esp + 0x20]
mov dword [esi + eax*4 + 0xbfad4], ecx
add dword [esi + 0xc151c], ebx
cmp dword [esi + 0xc151c], 0x11
jle 0x40c89a
push 0x42d580
push 0
push 0
call edi
add esp, 0xc
mov edx, dword [esi + 0xc151c]
mov eax, dword [esp + 0x1c]
mov dword [esi + edx*4 + 0xbfad4], eax
add dword [esi + 0xc151c], ebx
cmp dword [esi + 0xc151c], 0x11
jle 0x40c8c8
push 0x42d580
push 0
push 0
call edi
add esp, 0xc
mov ecx, dword [esi + 0xc151c]
mov edx, dword [esp + 0x18]
mov dword [esi + ecx*4 + 0xbfad4], edx
add dword [esi + 0xc151c], ebx
cmp dword [esi + 0xc151c], 0x11
jle 0x40c8f6
push 0x42d580
push 0
push 0
call edi
add esp, 0xc
mov eax, dword [esi + 0xc151c]
mov ecx, dword [esp + 0x14]
mov dword [esi + eax*4 + 0xbfad4], ecx
add dword [esi + 0xc151c], ebx
cmp dword [esi + 0xc151c], 0x11
jle 0x40c924
push 0x42d580
push 0
push 0
call edi
add esp, 0xc
push esi
call fcn.0040bc10
add esp, 4
test byte [esp + 0x10], 4
je 0x40c9f9
mov edx, dword [esi + 0xc151c]
mov eax, dword [esp + 0x2c]
mov dword [esi + edx*4 + 0xbfad4], eax
add dword [esi + 0xc151c], ebx
cmp dword [esi + 0xc151c], 0x11
jle 0x40c966
push 0x42d580
push 0
push 0
call edi
add esp, 0xc
mov ecx, dword [esi + 0xc151c]
mov edx, dword [esp + 0x30]
mov dword [esi + ecx*4 + 0xbfad4], edx
add dword [esi + 0xc151c], ebx
cmp dword [esi + 0xc151c], 0x11
jle 0x40c994
push 0x42d580
push 0
push 0
call edi
add esp, 0xc
mov eax, dword [esi + 0xc151c]
mov ecx, dword [esp + 0x28]
mov dword [esi + eax*4 + 0xbfad4], ecx
add dword [esi + 0xc151c], ebx
cmp dword [esi + 0xc151c], 0x11
jle 0x40c9c2
push 0x42d580
push 0
push 0
call edi
add esp, 0xc
mov edx, dword [esi + 0xc151c]
mov eax, dword [esp + 0x24]
mov dword [esi + edx*4 + 0xbfad4], eax
add dword [esi + 0xc151c], ebx
cmp dword [esi + 0xc151c], 0x11
jle 0x40c9f0
push 0x42d580
push 0
push 0
call edi
add esp, 0xc
push esi
call fcn.0040b720
add esp, 4
test byte [esp + 0x10], 8
je 0x40cac5
mov ecx, dword [esi + 0xc151c]
mov edx, dword [esp + 0x3c]
mov dword [esi + ecx*4 + 0xbfad4], edx
add dword [esi + 0xc151c], ebx
cmp dword [esi + 0xc151c], 0x11
jle 0x40ca32
push 0x42d580
push 0
push 0
call edi
add esp, 0xc
mov eax, dword [esi + 0xc151c]
mov ecx, dword [esp + 0x40]
mov dword [esi + eax*4 + 0xbfad4], ecx
add dword [esi + 0xc151c], ebx
cmp dword [esi + 0xc151c], 0x11
jle 0x40ca60
push 0x42d580
push 0
push 0
call edi
add esp, 0xc
mov edx, dword [esi + 0xc151c]
mov eax, dword [esp + 0x38]
mov dword [esi + edx*4 + 0xbfad4], eax
add dword [esi + 0xc151c], ebx
cmp dword [esi + 0xc151c], 0x11
jle 0x40ca8e
push 0x42d580
push 0
push 0
call edi
add esp, 0xc
mov ecx, dword [esi + 0xc151c]
mov edx, dword [esp + 0x34]
mov dword [esi + ecx*4 + 0xbfad4], edx
add dword [esi + 0xc151c], ebx
cmp dword [esi + 0xc151c], 0x11
jle 0x40cabc
push 0x42d580
push 0
push 0
call edi
add esp, 0xc
push esi
call fcn.0040b330
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x38
ret