Function at 0x4aec10
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x600bc9
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x4a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4bc]
mov dword [esp + 0x1c], eax
xor ebp, ebp
mov dword [esp + 0x4b0], ebp
mov ecx, dword [esp + 0x4b8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4aee39
mov word [esp + 0x494], 0x5c
mov dword [esp + 0x498], ebp
mov dword [esp + 0x49c], ebp
lea edx, [esp + 0x4b8]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, str..qpyd
mov byte [esp + 0x4b8], 1
call fcn.0040aab0
add esp, 8
mov byte [esp + 0x4b0], 2
mov eax, dword [eax]
lea esi, [esp + 0x3c]
call fcn.0040ad20
mov edi, eax
mov byte [esp + 0x4b0], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aecec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebp
je 0x4aee14
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov cx, word [esp + 0x6a]
nop
cmp dword [esp + 0x49c], ebp
je 0x4aed3f
mov eax, dword [esp + 0x3c]
shr eax, 4
and eax, 1
je 0x4aed37
cmp word [esp + 0x68], 0x2e
jne 0x4aed37
cmp cx, bp
je 0x4aee0c
cmp cx, 0x2e
jne 0x4aed37
cmp word [esp + 0x6c], bp
je 0x4aee0c
cmp eax, ebp
jne 0x4aee0c
lea ecx, [esp + 0x20]
push ecx
call fcn.004ac3a0
lea edx, [esp + 0x20]
push edx
push ecx
mov byte [esp + 0x4b8], 3
mov eax, esp
mov dword [esp + 0x20], esp
push eax
lea esi, [esp + 0x48]
call fcn.004b0eb0
call fcn.004aeea0
cmp eax, ebp
je 0x4aedc9
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004afe00
mov esi, eax
lea eax, [esp + 0x20]
mov edi, esi
call fcn.0040ab90
mov edx, dword [esp + 0x24]
lea edi, [esi + 8]
lea eax, [esp + 0x28]
mov dword [esi + 4], edx
call fcn.0040ab90
lea edi, [esi + 0xc]
lea eax, [esp + 0x2c]
call fcn.0040ab90
lea edi, [esi + 0x10]
lea eax, [esp + 0x30]
call fcn.0040ab90
lea edi, [esi + 0x14]
lea eax, [esp + 0x34]
call fcn.0040ab90
mov eax, dword [esp + 0x38]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x498]
cmp eax, ebp
jne 0x4aedd8
xor edi, edi
jmp 0x4aedf6
cmp dword [esp + 0x49c], ebp
jne 0x4aede5
xor edi, edi
jmp 0x4aedf6
lea ecx, [esp + 0x3c]
push ecx
push eax
call ebx
mov dword [esp + 0x49c], eax
mov edi, eax
lea esi, [esp + 0x20]
mov byte [esp + 0x4b0], 1
call fcn.004ae2e0
mov cx, word [esp + 0x6a]
cmp edi, ebp
jne 0x4aed00
mov eax, dword [esp + 0x498]
cmp eax, ebp
mov dword [esp + 0x49c], ebp
je 0x4aee39
cmp eax, 0xffffffff
je 0x4aee39
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x498], ebp
mov dword [esp + 0x4b0], 0xffffffff
mov eax, dword [esp + 0x4b8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4aee67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x4a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.005d28b3
add esp, 0x4a0
ret 8