Function at 0x679930
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x7c7fac
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x48c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x49c]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
call fcn.00678930
xor edi, edi
mov eax, 0x5c
mov dword [esp + 0x494], edi
mov word [esp + 0x47c], ax
mov dword [esp + 0x480], edi
mov dword [esp + 0x484], edi
push str..
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x4a0], 1
call fcn.00403a70
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
call fcn.00678410
test eax, eax
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6799f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x679a4f
mov eax, dword [esp + 0x480]
mov dword [esp + 0x484], edi
cmp eax, edi
je 0x679a1d
cmp eax, 0xffffffff
je 0x679a1d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x480], edi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x494], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x679a48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x679bec
mov eax, dword [esp + 0x484]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov bl, 2
cmp eax, edi
je 0x679b5b
mov ecx, dword [esp + 0x24]
shr ecx, 4
and ecx, 1
cmp ecx, edi
je 0x679b5b
cmp word [esp + 0x50], 0x2e
jne 0x679a9f
mov cx, word [esp + 0x52]
cmp cx, di
je 0x679b5b
cmp cx, 0x2e
jne 0x679a9f
cmp word [esp + 0x54], di
je 0x679b5b
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call fcn.00678880
mov edx, dword [esp + 0x14]
push 0x7ffb4c
push edx
mov byte [esp + 0x49c], bl
call fcn.00723690
add esp, 8
cmp eax, edi
je 0x679b2c
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
call fcn.00678b90
push 0xc
push str.360sefav.db
lea ecx, [esp + 0x28]
mov byte [esp + 0x49c], 3
call fcn.00404bd0
mov esi, dword [esp + 0x20]
push esi
call ebp
test eax, eax
je 0x679b09
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00531ee0
lea eax, [esi - 0x10]
mov byte [esp + 0x494], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x679b2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x494], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x679b54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x484]
mov ecx, dword [esp + 0x480]
cmp ecx, edi
je 0x679b8c
cmp eax, edi
je 0x679b8c
lea edx, [esp + 0x24]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp + 0x484], eax
cmp eax, edi
jne 0x679a66
mov ecx, dword [esp + 0x480]
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x10]
mov edx, eax
sub esi, dword [edx + 0xc]
mov dword [esp + 0x484], edi
and esi, 0xfffffffc
neg esi
sbb esi, esi
neg esi
cmp ecx, edi
je 0x679bbf
cmp ecx, 0xffffffff
je 0x679bbf
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x480], edi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x494], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x679bea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x484
ret 4