Function at 0x417f80
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4a26f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d16b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00410300
xor esi, esi
mov dword [esp + 0x30], esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
cmp eax, esi
je 0x41824e
mov edx, dword [0x4d5c6c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4d5c6c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x30], 1
mov edx, dword [0x4d5c6c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4d5c6c
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x30], 2
cmp dword [ebx - 0xc], esi
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jne 0x41805d
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], esi
jl 0x41805d
push 0x4ba760
push eax
call fcn.00480107
add esp, 8
cmp eax, esi
je 0x41805d
sub eax, dword [esp + 0x1c]
sar eax, 1
cmp eax, 1
jne 0x41805d
lea eax, [esp + 0x1c]
lea edi, [esp + 0x14]
call fcn.004070e0
mov ebx, dword [esp + 0x14]
push ebx
call ebp
test eax, eax
jne 0x41805d
mov esi, edi
call fcn.004052e0
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 0xc], 0
jne 0x4181e7
lea esi, [esp + 0x18]
call fcn.004052e0
lea esi, [esp + 0x20]
call fcn.00417dc0
lea edi, [esp + 0x18]
mov byte [esp + 0x30], 5
call fcn.004070e0
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4180ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
je 0x418120
lea eax, [esp + 0x18]
call fcn.00417d80
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
lea ebx, [esp + 0x20]
call fcn.00418310
add esp, 8
lea edi, [esp + 0x14]
mov byte [esp + 0x30], 6
call fcn.004070e0
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418108
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
push ebx
call ebp
test eax, eax
jne 0x418120
lea esi, [esp + 0x14]
call fcn.004052e0
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 0xc], 0
jne 0x4181e7
lea esi, [esp + 0x18]
call fcn.004052e0
lea esi, [esp + 0x20]
call fcn.00417ea0
lea edi, [esp + 0x18]
mov byte [esp + 0x30], 7
call fcn.004070e0
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41816f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
je 0x4181e3
lea eax, [esp + 0x18]
call fcn.00417d80
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
lea ebx, [esp + 0x20]
call fcn.00418310
add esp, 8
lea edi, [esp + 0x14]
mov byte [esp + 0x30], 8
call fcn.004070e0
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4181cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
push ebx
call ebp
test eax, eax
jne 0x4181e3
lea esi, [esp + 0x14]
call fcn.004052e0
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x4181ff
push ebx
call ebp
test eax, eax
je 0x4181ff
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x418208
mov ecx, dword [esp + 0x1c]
push ecx
call edi
mov esi, eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x30], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418229
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
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 0x41824e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418276
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047f460
add esp, 0x20
ret