Function at 0x41f9a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f52fd
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x65b500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41f9dd
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fc01
mov ecx, dword [ebx + 0x45c]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.0047bc00
mov eax, dword [ebp - 0x420]
cmp eax, dword [ebx + 0x460]
jne 0x41fbfd
lea ecx, [ebp - 0x41c]
call fcn.0042e5b0
push 0x6063c4
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], 0
call fcn.00406060
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x41c]
call fcn.0042ef00
mov edx, dword [ebp - 0x420]
or edi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fa72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x6063c8
lea ecx, [ebp - 0x420]
call fcn.00406060
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x41c]
call fcn.0042ef80
mov edx, dword [ebp - 0x420]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fab9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x603f94
lea ecx, [ebp - 0x424]
call fcn.00406060
push 0x6063cc
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 3
call fcn.00406060
push 0x6063d8
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 4
call fcn.00406060
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x41c]
call fcn.0042eec0
mov edx, dword [ebp - 0x420]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fb36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fb57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fb78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x41c]
call fcn.0042ef30
push 0
push dword [ebx + 4]
lea ecx, [ebp - 0x41c]
mov dword [ebx + 0x49c], 1
call fcn.0042efc0
mov dword [ebx + 0x49c], 0
test eax, eax
jne 0x41fbf2
cmp dword [esi + 0x14], 8
jb 0x41fbb5
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x424]
call fcn.00406060
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.0042b080
mov edx, dword [ebp - 0x424]
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41fbf2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x41c]
call fcn.0042e740
mov al, 1
jmp 0x41fc03
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004da36e
mov esp, ebp
pop ebp
ret 4