Function at 0x417dc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515ed0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x56f790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00408a30
mov ecx, eax
test ecx, ecx
je 0x4180e5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
call fcn.00408a30
mov ecx, eax
test ecx, ecx
je 0x4180ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
call fcn.0040ed70
mov ecx, eax
call fcn.0040cb60
test eax, eax
je 0x417e8f
lea eax, [ebp - 0x18]
push eax
call fcn.00463be0
add esp, 4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00408360
mov edx, dword [ebp - 0x18]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417e71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x52e7a0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00410610
add esp, 0xc
mov byte [ebp - 4], 3
jmp 0x417fae
call fcn.0040ed70
mov ecx, eax
call fcn.0040cb10
test eax, eax
je 0x417ef7
lea eax, [ebp - 0x18]
push eax
call fcn.00463a40
add esp, 4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00408360
mov edx, dword [ebp - 0x18]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417ed9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x52e7c0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00410610
add esp, 0xc
mov byte [ebp - 4], 5
jmp 0x417fae
call fcn.0040ed70
mov ecx, eax
call fcn.0040cbb0
test eax, eax
lea eax, [ebp - 0x18]
je 0x417f5c
push eax
call fcn.00463d80
add esp, 4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00408360
mov edx, dword [ebp - 0x18]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417f41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x52e7a0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00410610
add esp, 0xc
mov byte [ebp - 4], 7
jmp 0x417fae
push 0
push eax
call fcn.00465430
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00408360
mov edx, dword [ebp - 0x18]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417f95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x52e7c0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00410610
add esp, 0xc
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x10]
call fcn.00408360
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417fd5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
je 0x418059
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
je 0x418059
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0043c260
add esp, 8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call fcn.00408360
mov edx, dword [ebp - 0x18]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418026
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x418040
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x52bd6c
call fcn.004093d0
jmp 0x418097
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004088a0
mov ebx, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
jmp 0x418097
call fcn.00408a30
mov ecx, eax
test ecx, ecx
je 0x4180f9
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
push 0x52bd6c
mov ecx, ebx
mov byte [ebp - 4], 0xa
call fcn.00408690
test al, al
jne 0x418097
push 0
push 0x52bd6c
mov ecx, ebx
call fcn.00407f80
mov edx, dword [ebp - 0x10]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4180b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4180d1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404400
push 0x80004005
call fcn.00404400
push 0x80004005
call fcn.00404400
int3