Function at 0x4993f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x609936
mov eax, dword fs:[0]
push eax
sub esp, 0xdb8
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0xdb0], eax
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xdc8]
mov dword fs:[0], eax
test byte [0x681314], 1
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x18], eax
mov edi, 1
jne 0x499464
or dword [0x681314], edi
mov esi, 0x680ac8
call fcn.00498dc0
push 0x6139a0
call fcn.005d268a
add esp, 4
test byte [0x6809d0], 1
jne 0x49949c
or dword [0x6809d0], edi
cmp dword [0x678ec4], 0
jne 0x49948f
cmp dword [0x678ec8], 0
jne 0x49948f
mov dword [0x678ec4], 0x6790b8
push 0x6131e0
call fcn.005d268a
add esp, 4
mov esi, dword [0x678ec4]
mov dword [0x678ec0], edi
mov ecx, 0x368
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
cmp dword [0x680754], edi
je 0x49956e
call fcn.0049ad10
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00409dd0
mov dword [esp + 0xdd0], 0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x499543
mov ecx, dword [esp + 0x10]
push 0
push 0x680ac8
call fcn.0049a050
test eax, eax
je 0x499511
push ebx
mov esi, 0x680ac8
call fcn.004992e0
test eax, eax
jne 0x499554
mov dword [esp + 0xdd0], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49953c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x49963f
push 0x680ac8
mov ecx, str.10000000_0000_0000_0000_000000000001
call fcn.00499670
jmp 0x49950d
mov dword [esp + 0xdd0], 0xffffffff
mov eax, dword [esp + 0x10]
mov dword [0x680754], edi
jmp 0x499610
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x680ac8
call fcn.00409dd0
mov eax, dword [eax]
push str.10000000_0000_0000_0000_000000000001
push eax
call fcn.005d2da6
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4995b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x49962c
call fcn.0049ad10
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00409dd0
mov dword [esp + 0xdd0], 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x499601
push 0x680ac8
mov ecx, str.10000000_0000_0000_0000_000000000001
call fcn.00499670
test eax, eax
jne 0x499601
lea ecx, [esp + 0x14]
call fcn.00403870
xor eax, eax
jmp 0x49963f
mov dword [esp + 0xdd0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49962c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
push 0x680ac8
call fcn.00498eb0
mov eax, 1
mov ecx, dword [esp + 0xdc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xdb0]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret 4