Function at 0x499fb0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5a6d19
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
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 0x49a1d9
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.00412480
add esp, 8
mov byte [esp + 0x4b0], 2
mov eax, dword [eax]
lea esi, [esp + 0x3c]
call fcn.0049c410
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 0x49a08c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebp
je 0x49a1b4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov cx, word [esp + 0x6a]
nop
cmp dword [esp + 0x49c], ebp
je 0x49a0df
mov eax, dword [esp + 0x3c]
shr eax, 4
and eax, 1
je 0x49a0d7
cmp word [esp + 0x68], 0x2e
jne 0x49a0d7
cmp cx, bp
je 0x49a1ac
cmp cx, 0x2e
jne 0x49a0d7
cmp word [esp + 0x6c], bp
je 0x49a1ac
cmp eax, ebp
jne 0x49a1ac
lea ecx, [esp + 0x20]
push ecx
call fcn.00497720
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.0049c220
call fcn.0049a240
cmp eax, ebp
je 0x49a169
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0049b1a0
mov esi, eax
lea eax, [esp + 0x20]
mov edi, esi
call fcn.004035d0
mov edx, dword [esp + 0x24]
lea edi, [esi + 8]
lea eax, [esp + 0x28]
mov dword [esi + 4], edx
call fcn.004035d0
lea edi, [esi + 0xc]
lea eax, [esp + 0x2c]
call fcn.004035d0
lea edi, [esi + 0x10]
lea eax, [esp + 0x30]
call fcn.004035d0
lea edi, [esi + 0x14]
lea eax, [esp + 0x34]
call fcn.004035d0
mov eax, dword [esp + 0x38]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x498]
cmp eax, ebp
jne 0x49a178
xor edi, edi
jmp 0x49a196
cmp dword [esp + 0x49c], ebp
jne 0x49a185
xor edi, edi
jmp 0x49a196
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.00499660
mov cx, word [esp + 0x6a]
cmp edi, ebp
jne 0x49a0a0
mov eax, dword [esp + 0x498]
cmp eax, ebp
mov dword [esp + 0x49c], ebp
je 0x49a1d9
cmp eax, 0xffffffff
je 0x49a1d9
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 0x49a207
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.005787fd
add esp, 0x4a0
ret 8