Function at 0x461060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55745a
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x592c80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c0], edi
cmp dword [0x5a9418], 0
mov esi, dword [ebp + 0xc]
je 0x4610ff
push 0x576ca8
push str.autolog.dat
call fcn.0052537a
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4610ce
push str.PumaAnim::LoadCompressed
push ebx
call fcn.00446630
push ebx
call fcn.00525539
add esp, 0xc
cmp dword [0x5a9418], 0
je 0x4610ff
push 0x576ca8
push str.autolog.dat
call fcn.0052537a
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4610ff
push esi
push ebx
call fcn.00446630
push ebx
call fcn.00525539
add esp, 0xc
test esi, esi
jne 0x4611f9
push 0x58
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.004f0f30
lea eax, [ebp - 0x94]
mov byte [ebp - 0x94], 0
mov dword [ebp - 0x220], eax
add esp, 0xc
mov eax, dword [0x5a942c]
mov dword [ebp - 0x23c], 0x58
mov dword [ebp - 0x210], 0x577c30
mov dword [ebp - 0x21c], 0x80
mov eax, dword [eax + 0x2a3cc]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x23c]
push eax
mov dword [ebp - 0x230], str.PUMA_ANC_files
mov dword [ebp - 0x208], 8
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
je 0x461a00
lea esi, [ebp - 0x94]
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x461190
sub ecx, edx
test ecx, ecx
jle 0x461a00
xor eax, eax
nop dword [eax]
nop word [eax + eax]
cmp byte [ebp + eax - 0x94], 0x2e
je 0x46162f
inc eax
cmp eax, ecx
jl 0x4611b0
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x194]
push str._s.anc
push eax
call fcn.0044d8f0
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x94]
push 0x576ec8
push eax
call fcn.004623f0
add esp, 0xc
push 0x577c68
push esi
call fcn.0052537a
mov ebx, eax
add esp, 8
mov dword [ebp - 0x1b8], ebx
test ebx, ebx
je 0x461a00
cmp dword [edi + 0x15c], 0
je 0x4612ec
mov ecx, dword [edi + 0x154]
mov eax, dword [ecx + 4]
mov dword [edi + 0x158], eax
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x4612e6
lea esi, [edi + 0x154]
mov dword [ebp - 0x1c4], esi
nop word [eax + eax]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x461272
nop dword [eax]
cmp ecx, ebx
je 0x46164f
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x461260
mov dword [edi + 0x158], edx
mov eax, dword [edi + 0x158]
cmp dword [eax + 8], 0
je 0x4612b5
mov esi, dword [eax]
mov eax, dword [eax + 4]
push 0xc
mov dword [esi + 4], eax
mov eax, dword [edi + 0x158]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ecx], eax
push dword [edi + 0x158]
call fcn.004c8bcc
mov dword [edi + 0x158], esi
add esp, 8
mov esi, dword [ebp - 0x1c4]
test ebx, ebx
je 0x4612c1
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
cmp dword [edi + 0x15c], 0
je 0x4612e6
mov eax, dword [esi]
mov dword [ebp - 0x1c4], esi
mov eax, dword [eax + 4]
mov dword [edi + 0x158], eax
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x461250
mov ebx, dword [ebp - 0x1b8]
mov esi, dword [edi + 0x108]
mov edx, dword [0x5a9430]
test esi, esi
je 0x461328
cmp dword [edx + 0x10], 0
je 0x461328
mov eax, dword [edx + 8]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x461322
nop
cmp ecx, esi
je 0x46165a
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x461310
mov eax, dword [edx + 8]
mov dword [edx + 0xc], eax
push ebx
push 2
lea eax, [ebp - 0x1bc]
mov dword [ebp - 0x1bc], 0
push 1
push eax
call fcn.00526e8c
movsx eax, word [ebp - 0x1bc]
push ebx
push 4
mov dword [edi + 0x160], eax
lea eax, [ebp - 0x1cc]
push 1
push eax
call fcn.00526e8c
mov eax, dword [ebp - 0x1cc]
add eax, eax
push eax
call fcn.004c8bda
xor ebx, ebx
mov dword [ebp - 0x1d4], eax
add esp, 0x24
cmp dword [ebp - 0x1cc], ebx
jle 0x4613be
mov edi, dword [ebp - 0x1b8]
mov esi, eax
nop word [eax + eax]
push edi
push 1
push 1
push esi
call fcn.00526e8c
push edi
push 1
lea eax, [esi + 1]
push 1
push eax
call fcn.00526e8c
inc ebx
add esp, 0x20
add esi, 2
cmp ebx, dword [ebp - 0x1cc]
jl 0x461390
mov edi, dword [ebp - 0x1c0]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x1c4], esi
cmp ax, word [ebp - 0x1bc]
jge 0x4619af
push 0x164
call fcn.004c8b9c
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1d0], ebx
push 0x100
mov dword [ebx + 4], esi
lea esi, [ebx + 8]
push 0
push esi
mov dword [ebx], vtable.DataObject.0
call fcn.004f0f30
mov ecx, str.ANIM_FRAME
add esp, 0xc
sub esi, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x461410
mov dword [ebx], vtable.PumaAnimFrame.0
mov dword [ebx + 0x10c], 0
cmp dword [edi + 0x15c], 0
je 0x461493
mov ecx, dword [ebp - 0x1c0]
mov edi, dword [edi + 0x158]
push 0xc
mov eax, dword [ecx + 0x154]
mov esi, dword [eax]
mov dword [ecx + 0x158], esi
call fcn.004c8b9c
mov edx, dword [ebp - 0x1c0]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1d0], ecx
mov dword [ecx + 4], ecx
mov dword [ecx], ecx
mov dword [ecx + 8], 0
mov dword [edx + 0x158], ecx
mov dword [ecx + 8], ebx
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 dword [eax], ecx
mov dword [edx + 0x158], edi
mov esi, dword [ebp - 0x1b8]
lea eax, [ebx + 0x11c]
push esi
push 0xc
push 1
push eax
call fcn.00526e8c
push esi
push 0xc
lea eax, [ebx + 0x110]
push 1
push eax
call fcn.00526e8c
push esi
push 0xc
lea eax, [ebp - 0x1ac]
push 1
push eax
call fcn.00526e8c
push esi
push 0xc
lea eax, [ebp - 0x1a0]
push 1
push eax
call fcn.00526e8c
mov eax, dword [ebp - 0x1cc]
add esp, 0x40
mov dword [ebx + 0x108], eax
push 0x224
call fcn.004c8b9c
add esp, 4
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x108]
push 0x152
lea ecx, [ecx + ecx*8]
shl ecx, 2
push ecx
mov ecx, eax
call fcn.00469840
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x5a9430]
mov dword [ebx + 0x10c], eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1c8], ecx
cmp dword [ecx + 0x10], 0
je 0x461596
test eax, eax
je 0x461596
mov eax, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
push 0xc
mov esi, dword [eax]
mov dword [ecx + 0xc], esi
call fcn.004c8b9c
mov edx, dword [ebp - 0x1c8]
mov ecx, eax
mov eax, dword [ebp - 0x1d0]
add esp, 4
mov dword [ebp - 0x1e0], ecx
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 dword [eax], ecx
mov dword [edx + 0xc], edi
mov eax, dword [ebx + 0x10c]
test eax, eax
jne 0x46167d
mov edi, dword [ebp - 0x1c0]
cmp dword [edi + 0x15c], eax
je 0x46160d
mov eax, dword [edi + 0x154]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4615d0
cmp ecx, ebx
je 0x4615d6
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4615c2
mov eax, dword [edi + 0x154]
mov dword [edi + 0x158], eax
cmp dword [eax + 8], 0
je 0x46160d
mov esi, dword [eax]
mov eax, dword [eax + 4]
push 0xc
mov dword [esi + 4], eax
mov eax, dword [edi + 0x158]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ecx], eax
push dword [edi + 0x158]
call fcn.004c8bcc
add esp, 8
mov dword [edi + 0x158], esi
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov eax, dword [ebp - 0x1c4]
mov dword [edi + 0x160], eax
mov eax, dword [ebp - 0x1bc]
movsx esi, ax
jmp 0x46199f
cmp eax, ecx
jge 0x4611c3
cmp eax, 0x80
jae 0x461a1e
mov byte [ebp + eax - 0x94], 0
jmp 0x4611c3
mov dword [edi + 0x158], eax
jmp 0x461278
mov dword [edx + 0xc], eax
cmp dword [eax + 8], 0
je 0x461328
push esi
lea ecx, [edx + 4]
call fcn.0044f310
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x461328
cmp dword [eax + 0x108], 0
jne 0x461717
mov edi, dword [ebp - 0x1c0]
cmp dword [edi + 0x15c], 0
je 0x4616fb
mov eax, dword [edi + 0x154]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4616be
nop dword [eax]
cmp ecx, ebx
je 0x4616c4
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4616b0
mov eax, dword [edi + 0x154]
mov dword [edi + 0x158], eax
cmp dword [eax + 8], 0
je 0x4616fb
mov esi, dword [eax]
mov eax, dword [eax + 4]
push 0xc
mov dword [esi + 4], eax
mov eax, dword [edi + 0x158]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ecx], eax
push dword [edi + 0x158]
call fcn.004c8bcc
add esp, 8
mov dword [edi + 0x158], esi
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov eax, dword [ebp - 0x1bc]
movsx esi, ax
mov dword [edi + 0x160], esi
jmp 0x46199f
mov eax, dword [eax + 0x114]
lea edx, [ebp - 0x1d8]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x108]
xor edi, edi
mov ecx, dword [ebp - 0x1d8]
mov dword [ebp - 0x1c8], ecx
test eax, eax
jle 0x461804
lea esi, [ecx + 0xc]
nop
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x1ad]
push 1
push 1
push eax
call fcn.00526e8c
movsx eax, byte [ebp - 0x1ad]
push dword [ebp - 0x1b8]
push 1
movd xmm0, eax
lea eax, [ebp - 0x1ad]
cvtdq2ps xmm0, xmm0
push 1
push eax
divss xmm0, dword [0x5814d0]
movss dword [esi], xmm0
call fcn.00526e8c
movsx eax, byte [ebp - 0x1ad]
push dword [ebp - 0x1b8]
push 1
movd xmm0, eax
lea eax, [ebp - 0x1ad]
cvtdq2ps xmm0, xmm0
push 1
push eax
divss xmm0, dword [0x5814d0]
movss dword [esi + 4], xmm0
call fcn.00526e8c
movsx eax, byte [ebp - 0x1ad]
add esp, 0x30
movd xmm0, eax
cvtdq2ps xmm0, xmm0
push esi
push esi
divss xmm0, dword [0x5814d0]
movss dword [esi + 8], xmm0
call fcn.00404e16
mov eax, dword [ebx + 0x108]
inc edi
add esi, 0x24
cmp edi, eax
jl 0x461750
mov ecx, dword [ebp - 0x1c8]
xor edi, edi
test eax, eax
jle 0x4618e8
lea esi, [ecx + 8]
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x1b4]
push 2
push 1
push eax
call fcn.00526e8c
movsx eax, word [ebp - 0x1b4]
push dword [ebp - 0x1b8]
push 2
movd xmm0, eax
lea eax, [ebp - 0x1b4]
cvtdq2ps xmm0, xmm0
push 1
push eax
divss xmm0, dword [0x581530]
mulss xmm0, dword [ebp - 0x1a0]
addss xmm0, dword [ebp - 0x1ac]
movss dword [esi - 8], xmm0
call fcn.00526e8c
movsx eax, word [ebp - 0x1b4]
push dword [ebp - 0x1b8]
push 2
movd xmm0, eax
lea eax, [ebp - 0x1b4]
cvtdq2ps xmm0, xmm0
push 1
push eax
divss xmm0, dword [0x581530]
mulss xmm0, dword [ebp - 0x19c]
addss xmm0, dword [ebp - 0x1a8]
movss dword [esi - 4], xmm0
call fcn.00526e8c
movsx eax, word [ebp - 0x1b4]
inc edi
add esp, 0x30
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x581530]
mulss xmm0, dword [ebp - 0x198]
addss xmm0, dword [ebp - 0x1a4]
movss dword [esi], xmm0
add esi, 0x24
mov eax, dword [ebx + 0x108]
cmp edi, eax
jl 0x461811
mov esi, dword [ebp - 0x1c8]
xor ecx, ecx
test eax, eax
jle 0x46193c
movss xmm1, dword [0x581504]
lea edx, [esi + 0x20]
mov edi, dword [ebp - 0x1d4]
movzx eax, byte [edi + ecx*2]
lea edx, [edx + 0x24]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [edx - 0x28], xmm0
movzx eax, byte [edi + ecx*2 + 1]
inc ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [edx - 0x24], xmm0
mov eax, dword [ebx + 0x108]
cmp ecx, eax
jl 0x461905
xor ecx, ecx
test eax, eax
jle 0x461956
mov edx, dword [ebp + 0x10]
lea eax, [esi + 0x18]
mov dword [eax], edx
lea eax, [eax + 0x24]
inc ecx
cmp ecx, dword [ebx + 0x108]
jl 0x461948
mov esi, dword [ebx + 0x10c]
mov eax, dword [esi + 0x114]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [esi + 0x114]
lea edx, [ebp - 0x1e4]
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]
mov eax, dword [ebp - 0x1bc]
mov edi, dword [ebp - 0x1c0]
mov esi, dword [ebp - 0x1c4]
inc esi
cwde
mov dword [ebp - 0x1c4], esi
cmp esi, eax
jl 0x4613d5
push dword [ebp - 0x1b8]
call fcn.00525539
add esp, 4
push dword [ebp - 0x1d4]
call fcn.004c8b97
add esp, 4
cmp dword [0x5a9418], 0
je 0x461a00
push 0x576ca8
push str.autolog.dat
call fcn.0052537a
mov esi, eax
add esp, 8
test esi, esi
je 0x461a00
push str._DONE_n
push esi
call fcn.00446630
push esi
call fcn.00525539
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c8873
mov esp, ebp
pop ebp
ret 0xc
call fcn.004c89a4
int3