Function at 0x4138a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b290
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4914f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, 1
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413967
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov edi, esp
push eax
call fcn.00402ba0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00412e50
add esp, 4
test eax, eax
jne 0x413967
mov byte [ebp - 4], al
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41392d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413953
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0x10], 0
mov ecx, dword [eax - 0xc]
push ecx
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x413989
call fcn.004019d0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call edi
mov edi, eax
test edi, edi
jne 0x41399e
call fcn.004019d0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x14]
push ecx
push 0x47f03c
push esi
push 0
push 0x47f04c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x413ac1
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [ebp - 0x2c]
push edx
call esi
mov ecx, dword [ebp - 0x14]
mov eax, 8
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x10]
push eax
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x24], ebx
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
mov ecx, ebx
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx + 0x24]
push eax
call ecx
test eax, eax
js 0x413aad
lea edx, [ebp - 0x3c]
push edx
call esi
lea ecx, [ebp - 0x4c]
mov eax, 8
push ecx
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x34], edi
call esi
mov eax, dword [ebp - 0x10]
mov ecx, 0x614
mov dword [ebp - 0x44], ecx
mov edx, 3
sub esp, 0x10
mov word [ebp - 0x4c], dx
mov edx, dword [eax]
mov esi, dword [ebp - 0x4c]
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp - 0x48]
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x3c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 0x3c]
push eax
call ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
push ebx
call esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x413ac8
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
mov dword [ebp - 0x18], 0
call edx
jmp 0x413ac8
mov dword [ebp - 0x18], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413af1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret