Function at 0x489341
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522a2d
mov eax, dword fs:[0]
push eax
mov eax, 0x6f9c
call fcn.004eff30
mov eax, dword [0x567570]
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 eax, dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x6f84], esi
mov dword [ebp - 0x6f80], eax
push esi
mov eax, 0x56a868
lea edi, [ebp - 0x6f7c]
mov dword [ebp - 4], 3
call fcn.0047d17c
lea edi, [ebp - 0x6f78]
mov byte [ebp - 4], 4
call fcn.00422886
xor ebx, ebx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x6f74], ebx
je 0x48965b
call fcn.00489282
test eax, eax
je 0x48959f
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004ee670
mov edx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov eax, 0x208
call section..text
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48959f
mov edi, dword [ebp + 0xc]
call fcn.004879c5
push 0x67c0
lea eax, [ebp - 0x6f70]
push ebx
push eax
call fcn.004ee670
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x6f70]
add esp, 0xc
mov dword [ebp - 0x27bc], 5
mov dword [ebp - 0x28c4], ebx
mov dword [ebp - 0x27b8], ebx
mov dword [ebp - 0x27c0], ebx
mov dword [ebp - 0x27b4], 1
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
inc eax
inc eax
cmp dx, bx
jne 0x48946c
mov eax, dword [ebp + 0xc]
mov edi, dword [eax - 0xc]
push 0x5c
lea esi, [ebp + 0xc]
call fcn.004116a7
mov ecx, eax
mov eax, edi
sub eax, ecx
lea ecx, [ebp - 0x6f8c]
push ecx
dec eax
mov ecx, esi
call fcn.00411661
push 0x5c
mov byte [ebp - 4], 6
call fcn.004116a7
lea ebx, [ebp - 0x6f88]
mov ecx, esi
call fcn.00404af0
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00404918
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x6f88]
add ecx, 0xfffffff0
call fcn.0040297c
mov esi, dword [ebp - 0x6f8c]
lea eax, [ebp - 0x2ee0]
mov ecx, esi
sub eax, esi
movzx edx, word [ecx]
mov word [eax + ecx], dx
inc ecx
inc ecx
test dx, dx
jne 0x4894e5
lea edx, [ebp - 0x2cd8]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x4894fd
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x2ad0]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x489516
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x5f28]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x48952f
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x4ee0]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x489548
lea eax, [ebp - 0x6f70]
push eax
mov eax, dword [0x57666c]
mov dword [ebp - 0x27bc], 3
call dword [eax + 0x438]
mov edi, eax
xor ebx, ebx
pop ecx
cmp edi, ebx
je 0x489605
mov eax, dword [0x57666c]
push edi
call dword [eax + 0x440]
pop ecx
lea ecx, [esi - 0x10]
call fcn.0040297c
mov dword [ebp - 0x6f74], ebx
jmp 0x489661
lea eax, [ebp - 0x6f78]
mov byte [ebp - 4], 4
call fcn.00422863
lea esi, [ebp - 0x6f7c]
mov byte [ebp - 4], 3
call fcn.0047d158
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040297c
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040297c
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040297c
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.0040297c
xor eax, eax
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.004ee5a2
leave
ret
lea ecx, [esi - 0x10]
call fcn.0040297c
lea eax, [ebp - 0x6f78]
mov byte [ebp - 4], 4
call fcn.00422863
lea esi, [ebp - 0x6f7c]
mov byte [ebp - 4], 3
call fcn.0047d158
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040297c
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040297c
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040297c
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.0040297c
mov eax, ebx
jmp 0x4895eb
mov edi, dword [ebp - 0x6f80]
lea eax, [ebp - 0x6f78]
mov byte [ebp - 4], 4
call fcn.00422863
lea esi, [ebp - 0x6f7c]
mov byte [ebp - 4], 3
call fcn.0047d158
mov dword [ebp - 0x6f78], edi
mov dword [ebp - 0x6f74], ebx
push 0x595
lea eax, [ebp - 0x7b0]
push ebx
push eax
mov byte [ebp - 4], 8
call fcn.004ee670
fldz
fst dword [ebp - 0x388]
add esp, 0xc
fstp dword [ebp - 0x323]
mov dword [ebp - 0x7b0], 2
mov dword [ebp - 0x7ac], ebx
mov byte [ebp - 0x324], bl
jmp 0x4896cc
fstp st(0)
mov eax, dword [0x576670]
mov esi, dword [ebp - 0x6f84]
call fcn.00411f58
lea eax, [ebp - 0x7b0]
push eax
mov eax, dword [0x57666c]
push edi
call dword [eax + 0x448]
pop ecx
pop ecx
test eax, eax
je 0x4896cc
mov eax, dword [ebp - 0x7b0]
cmp eax, ebx
jle 0x4896cc
cmp eax, 2
jle 0x4897f5
cmp eax, 3
je 0x489777
cmp eax, 4
jne 0x4896cc
cmp dword [ebp + 0x20], ebx
je 0x489756
mov eax, dword [ebp - 0x330]
fld qword [0x54c890]
mov dword [ebp - 0x6fa0], eax
fstp qword [ebp - 0x6fa8]
mov eax, dword [ebp - 0x398]
mov dword [ebp - 0x6f98], eax
mov eax, dword [ebp - 0x394]
mov dword [ebp - 0x6f94], eax
lea eax, [ebp - 0x6fa8]
push eax
push dword [ebp + 0x24]
call dword [ebp + 0x20]
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp edi, ebx
je 0x48976f
mov eax, dword [0x57666c]
cmp eax, ebx
je 0x48976f
push edi
call dword [eax + 0x43c]
pop ecx
xor ebx, ebx
inc ebx
jmp 0x48962b
mov edx, dword [ebp - 0x394]
cmp edx, ebx
jl 0x4896cc
mov ecx, dword [ebp - 0x398]
jg 0x489795
cmp ecx, ebx
jbe 0x4896cc
fild qword [ebp - 0x390]
fld qword [0x54c890]
fmul st(1), st(0)
fild qword [ebp - 0x398]
fdivp st(2)
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x4897b8
fstp st(1)
jmp 0x4897ba
fstp st(0)
cmp dword [ebp + 0x20], ebx
je 0x4896ca
mov eax, dword [ebp - 0x330]
fstp qword [ebp - 0x6fa8]
mov dword [ebp - 0x6fa0], eax
lea eax, [ebp - 0x6fa8]
push eax
push dword [ebp + 0x24]
mov dword [ebp - 0x6f98], ecx
mov dword [ebp - 0x6f94], edx
call dword [ebp + 0x20]
pop ecx
pop ecx
jmp 0x4896cc
cmp dword [ebp + 0x18], ebx
je 0x489804
mov dword [ebp - 0x6f74], 1
cmp eax, 1
jne 0x489824
mov eax, dword [0x57666c]
push edi
call dword [eax + 0x43c]
mov eax, dword [ebp - 0x7ac]
pop ecx
mov ecx, dword [ebp - 0x6f80]
mov dword [ecx], eax
mov byte [ebp - 4], 3
cmp edi, ebx
je 0x48962b
mov eax, dword [0x57666c]
cmp eax, ebx
je 0x48962b
push edi
cmp dword [ebp - 0x6f74], ebx
je 0x48984e
call dword [eax + 0x43c]
jmp 0x489854
call dword [eax + 0x444]
pop ecx
jmp 0x48962b