Function at 0x442eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bae25
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x4eac74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2b4], esi
cmp dword [0x4ffd58], 0
mov edi, dword [ebp + 0xc]
je 0x442f4f
push 0x4d1c84
push 0x4d1c88
call fcn.004a3dcc
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x442f1e
push str.PumaMesh::LoadCompressed
push ebx
call fcn.00430d20
push ebx
call fcn.004a3ea0
add esp, 0xc
cmp dword [0x4ffd58], 0
je 0x442f4f
push 0x4d1c84
push 0x4d1c88
call fcn.004a3dcc
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x442f4f
push edi
push ebx
call fcn.00430d20
push ebx
call fcn.004a3ea0
add esp, 0xc
test edi, edi
jne 0x443013
push 0x58
lea eax, [ebp - 0x320]
push edi
push eax
call fcn.004986c0
lea eax, [ebp - 0x90]
mov byte [ebp - 0x90], 0
mov dword [ebp - 0x304], eax
add esp, 0xc
mov eax, dword [0x4ffd6c]
mov dword [ebp - 0x320], 0x58
mov dword [ebp - 0x2f4], 0x4d327c
mov dword [ebp - 0x300], 0x80
mov eax, dword [eax + 0x2a3cc]
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x314], str.PUMA_MEC_files
mov dword [ebp - 0x2ec], 8
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
jne 0x442fd7
xor eax, eax
jmp 0x44350b
lea edi, [ebp - 0x90]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442fe2
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x44350b
nop word [eax + eax]
cmp byte [ebp + eax - 0x90], 0x2e
je 0x443529
inc eax
cmp eax, ecx
jl 0x443000
push edi
lea eax, [ebp - 0x190]
push 0x4d3298
push eax
call fcn.00434510
add esp, 0xc
lea eax, [ebp - 0x290]
push edi
push str._s.crc
push eax
call fcn.00434510
add esp, 0xc
lea edx, [ebp - 0x2c8]
lea ecx, [ebp - 0x190]
call fcn.00431c60
push 0x4d32a4
push edi
call fcn.004a3dcc
mov ebx, eax
add esp, 8
mov dword [ebp - 0x2c4], ebx
test ebx, ebx
je 0x442fd0
mov edi, dword [esi + 0x128]
test edi, edi
je 0x4430a4
mov eax, dword [0x4ffd70]
add eax, 4
push edi
mov ecx, eax
mov dword [ebp - 0x2b8], eax
call fcn.00434cb0
test eax, eax
je 0x4430a4
mov ecx, dword [ebp - 0x2b8]
push edi
call fcn.00434d50
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov edi, dword [esi + 0x12c]
test edi, edi
je 0x4430dc
mov eax, dword [0x4ffd70]
add eax, 4
push edi
mov ecx, eax
mov dword [ebp - 0x2b8], eax
call fcn.00434cb0
test eax, eax
je 0x4430dc
mov ecx, dword [ebp - 0x2b8]
push edi
call fcn.00434d50
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push ebx
push 4
lea eax, [ebp - 0x2bc]
push 1
push eax
call fcn.004a4d44
mov eax, dword [ebp - 0x2bc]
add eax, eax
push eax
call fcn.00495cdf
xor edi, edi
mov dword [ebp - 0x2b8], eax
add esp, 0x14
cmp dword [ebp - 0x2bc], edi
jle 0x44313e
mov esi, eax
push ebx
push 1
push 1
push esi
call fcn.004a4d44
push ebx
push 1
lea eax, [esi + 1]
push 1
push eax
call fcn.004a4d44
inc edi
add esp, 0x20
add esi, 2
cmp edi, dword [ebp - 0x2bc]
jl 0x443110
mov esi, dword [ebp - 0x2b4]
push ebx
push 0xc
lea eax, [ebp - 0x2a8]
push 1
push eax
call fcn.004a4d44
push ebx
push 0xc
lea eax, [ebp - 0x29c]
push 1
push eax
call fcn.004a4d44
mov eax, dword [ebp - 0x2bc]
push 0x224
mov dword [esi + 0x124], eax
call fcn.00495ca1
add esp, 0x24
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x124]
push 0x152
lea ecx, [ecx + ecx*8]
shl ecx, 2
push ecx
mov ecx, eax
call fcn.00443f50
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
mov edx, dword [0x4ffd70]
mov dword [esi + 0x128], eax
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2b0], edx
cmp dword [edx + 0x10], 0
je 0x443224
test eax, eax
je 0x443224
mov eax, dword [edx + 8]
mov edi, dword [edx + 0xc]
push 0xc
mov esi, dword [eax]
mov dword [edx + 0xc], esi
call fcn.00495ca1
mov edx, dword [ebp - 0x2b0]
mov ecx, eax
mov dword [ebp - 0x2c0], ecx
add esp, 4
mov eax, dword [ebp - 0x2ac]
mov dword [ecx + 4], ecx
mov dword [ecx], ecx
mov dword [ecx + 8], 0
mov dword [edx + 0xc], ecx
mov dword [ecx + 8], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov dword [ecx], esi
mov dword [esi + 4], ecx
mov eax, dword [ecx + 4]
mov esi, dword [ebp - 0x2b4]
mov dword [eax], ecx
mov dword [edx + 0xc], edi
mov ecx, dword [esi + 0x128]
mov eax, dword [ecx + 0x114]
lea edx, [ebp - 0x2c0]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x2c]
mov ecx, dword [esi + 0x124]
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b0], 0
test ecx, ecx
jle 0x443315
lea edi, [eax + 0xc]
push ebx
push 1
lea eax, [ebp - 0x2a9]
push 1
push eax
call fcn.004a4d44
movsx eax, byte [ebp - 0x2a9]
push ebx
push 1
push 1
movd xmm0, eax
lea eax, [ebp - 0x2a9]
cvtdq2ps xmm0, xmm0
push eax
divss xmm0, dword [0x4e0068]
movss dword [edi], xmm0
call fcn.004a4d44
movsx eax, byte [ebp - 0x2a9]
push ebx
push 1
push 1
movd xmm0, eax
lea eax, [ebp - 0x2a9]
cvtdq2ps xmm0, xmm0
push eax
divss xmm0, dword [0x4e0068]
movss dword [edi + 4], xmm0
call fcn.004a4d44
movsx eax, byte [ebp - 0x2a9]
add esp, 0x30
movd xmm0, eax
cvtdq2ps xmm0, xmm0
push edi
push edi
divss xmm0, dword [0x4e0068]
movss dword [edi + 8], xmm0
call fcn.00402788
mov eax, dword [ebp - 0x2b0]
add edi, 0x24
mov ecx, dword [esi + 0x124]
inc eax
mov dword [ebp - 0x2b0], eax
cmp eax, ecx
jl 0x443264
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2b0], 0
test ecx, ecx
jle 0x443404
lea edi, [eax + 8]
nop word [eax + eax]
push ebx
push 2
lea eax, [ebp - 0x2ac]
push 1
push eax
call fcn.004a4d44
movsx eax, word [ebp - 0x2ac]
push ebx
push 2
push 1
movd xmm0, eax
lea eax, [ebp - 0x2ac]
cvtdq2ps xmm0, xmm0
push eax
divss xmm0, dword [0x4e00b8]
mulss xmm0, dword [ebp - 0x29c]
addss xmm0, dword [ebp - 0x2a8]
movss dword [edi - 8], xmm0
call fcn.004a4d44
movsx eax, word [ebp - 0x2ac]
push ebx
push 2
push 1
movd xmm0, eax
lea eax, [ebp - 0x2ac]
cvtdq2ps xmm0, xmm0
push eax
divss xmm0, dword [0x4e00b8]
mulss xmm0, dword [ebp - 0x298]
addss xmm0, dword [ebp - 0x2a4]
movss dword [edi - 4], xmm0
call fcn.004a4d44
movsx eax, word [ebp - 0x2ac]
add esp, 0x30
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp - 0x2b0]
inc eax
mov dword [ebp - 0x2b0], eax
divss xmm0, dword [0x4e00b8]
mulss xmm0, dword [ebp - 0x294]
addss xmm0, dword [ebp - 0x2a0]
movss dword [edi], xmm0
add edi, 0x24
mov ecx, dword [esi + 0x124]
cmp eax, ecx
jl 0x443330
xor edx, edx
test ecx, ecx
jle 0x44345e
mov edi, dword [ebp - 0x2b4]
movss xmm1, dword [0x4e009c]
add edi, 0x20
mov ebx, dword [ebp - 0x2b8]
movzx eax, byte [ebx + edx*2]
lea edi, [edi + 0x24]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [edi - 0x28], xmm0
movzx eax, byte [ebx + edx*2 + 1]
inc edx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [edi - 0x24], xmm0
mov ecx, dword [esi + 0x124]
cmp edx, ecx
jl 0x443421
mov ebx, dword [ebp - 0x2c4]
xor eax, eax
test ecx, ecx
jle 0x443482
mov ecx, dword [ebp - 0x2b4]
add ecx, 0x18
nop dword [eax]
mov dword [ecx], 0xffffffff
lea ecx, [ecx + 0x24]
inc eax
cmp eax, dword [esi + 0x124]
jl 0x443470
mov esi, dword [esi + 0x128]
mov eax, dword [esi + 0x114]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [esi + 0x114]
lea edx, [ebp - 0x2c4]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x2c]
mov eax, dword [esi + 0x114]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
push ebx
call fcn.004a3ea0
add esp, 4
push dword [ebp - 0x2b8]
call fcn.00495c9c
add esp, 4
cmp dword [0x4ffd58], 0
je 0x443505
push 0x4d1c84
push 0x4d1c88
call fcn.004a3dcc
mov esi, eax
add esp, 8
test esi, esi
je 0x443505
push str._DONE_n
push esi
call fcn.00430d20
push esi
call fcn.004a3ea0
add esp, 0xc
mov eax, dword [ebp - 0x2c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495a90
mov esp, ebp
pop ebp
ret 8
cmp eax, ecx
jge 0x443013
cmp eax, 0x80
jae 0x443545
mov byte [ebp + eax - 0x90], 0
jmp 0x443013
call fcn.00495bc2
int3