Function at 0x1003c040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40044
call fcn.10064ac0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100902d4
mov eax, dword [ebp + 8]
push eax
call fcn.1005c29c
add esp, 8
mov dword [ebp - 0x40020], eax
cmp dword [ebp - 0x40020], 0
jne 0x1003c07e
xor eax, eax
jmp 0x1003c352
mov ecx, dword [ebp - 0x40020]
push ecx
push 0xc
push 1
lea edx, [ebp - 0x40010]
push edx
call fcn.1005b9c8
add esp, 0x10
mov eax, dword [ebp - 0x40010]
push eax
call fcn.10031a30
add esp, 4
cmp eax, 0x4b434150
je 0x1003c0c1
mov ecx, dword [ebp + 8]
push ecx
push str._s_is_not_a_packfile
push 0
call fcn.10038830
add esp, 0xc
mov edx, dword [ebp - 0x4000c]
push edx
call fcn.10031a30
add esp, 4
mov dword [ebp - 0x4000c], eax
mov eax, dword [ebp - 0x40008]
push eax
call fcn.10031a30
add esp, 4
mov dword [ebp - 0x40008], eax
mov ecx, dword [ebp - 0x40008]
shr ecx, 6
mov dword [ebp - 0x4001c], ecx
cmp dword [ebp - 0x4001c], 0x1000
jle 0x1003c120
mov edx, dword [ebp - 0x4001c]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_has__i_files
push 0
call fcn.10038830
add esp, 0x10
imul ecx, dword [ebp - 0x4001c], 0x48
push ecx
call fcn.1003a570
add esp, 4
mov dword [ebp - 0x40030], eax
push 0
mov edx, dword [ebp - 0x4000c]
push edx
mov eax, dword [ebp - 0x40020]
push eax
call fcn.1005cbf0
add esp, 0xc
mov ecx, dword [ebp - 0x40020]
push ecx
mov edx, dword [ebp - 0x40008]
push edx
push 1
lea eax, [ebp - 0x40004]
push eax
call fcn.1005b9c8
add esp, 0x10
mov ecx, dword [ebp - 0x40008]
push ecx
lea edx, [ebp - 0x40004]
push edx
call fcn.1003dfb0
add esp, 8
mov dword [ebp - 0x40040], eax
mov dword [ebp - 0x40018], 0
jmp 0x1003c1a4
mov eax, dword [ebp - 0x40018]
add eax, 1
mov dword [ebp - 0x40018], eax
mov ecx, dword [ebp - 0x40018]
cmp ecx, dword [ebp - 0x4001c]
jge 0x1003c287
mov edx, dword [ebp - 0x40018]
shl edx, 6
lea eax, [ebp + edx - 0x40004]
mov dword [ebp - 0x40038], eax
imul ecx, dword [ebp - 0x40018], 0x48
add ecx, dword [ebp - 0x40030]
mov dword [ebp - 0x4002c], ecx
mov edx, dword [ebp - 0x4002c]
mov dword [ebp - 0x4003c], edx
mov eax, dword [ebp - 0x40038]
mov cl, byte [eax]
mov byte [ebp - 0x40012], cl
mov edx, dword [ebp - 0x4002c]
mov al, byte [ebp - 0x40012]
mov byte [edx], al
mov ecx, dword [ebp - 0x40038]
add ecx, 1
mov dword [ebp - 0x40038], ecx
mov edx, dword [ebp - 0x4002c]
add edx, 1
mov dword [ebp - 0x4002c], edx
cmp byte [ebp - 0x40012], 0
jne 0x1003c1eb
mov eax, dword [ebp - 0x40018]
shl eax, 6
mov ecx, dword [ebp + eax - 0x3ffcc]
push ecx
call fcn.10031a30
add esp, 4
imul edx, dword [ebp - 0x40018], 0x48
mov ecx, dword [ebp - 0x40030]
mov dword [ecx + edx + 0x40], eax
mov edx, dword [ebp - 0x40018]
shl edx, 6
mov eax, dword [ebp + edx - 0x3ffc8]
push eax
call fcn.10031a30
add esp, 4
imul ecx, dword [ebp - 0x40018], 0x48
mov edx, dword [ebp - 0x40030]
mov dword [edx + ecx + 0x44], eax
jmp 0x1003c195
push 0x8c
call fcn.1003a570
add esp, 4
mov dword [ebp - 0x40024], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40034], eax
mov ecx, dword [ebp - 0x40024]
mov dword [ebp - 0x40028], ecx
mov edx, dword [ebp - 0x40028]
mov dword [ebp - 0x40044], edx
mov eax, dword [ebp - 0x40034]
mov cl, byte [eax]
mov byte [ebp - 0x40011], cl
mov edx, dword [ebp - 0x40028]
mov al, byte [ebp - 0x40011]
mov byte [edx], al
mov ecx, dword [ebp - 0x40034]
add ecx, 1
mov dword [ebp - 0x40034], ecx
mov edx, dword [ebp - 0x40028]
add edx, 1
mov dword [ebp - 0x40028], edx
cmp byte [ebp - 0x40011], 0
jne 0x1003c2bb
mov eax, dword [ebp - 0x40024]
mov ecx, dword [ebp - 0x40020]
mov dword [eax + 0x80], ecx
mov edx, dword [ebp - 0x40024]
mov eax, dword [ebp - 0x4001c]
mov dword [edx + 0x84], eax
mov ecx, dword [ebp - 0x40024]
mov edx, dword [ebp - 0x40030]
mov dword [ecx + 0x88], edx
mov eax, dword [ebp - 0x4001c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.Added_packfile__s___i_files__n
call fcn.10038500
add esp, 0xc
mov eax, dword [ebp - 0x40024]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret