Function at 0x4031f0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41e250
push eax
mov dword fs:[0], esp
sub esp, 0x2c
lea eax, [esp + 0x1c]
push eax
push str.InternetExplorer.Application
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
jge 0x40322f
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
xor ebp, ebp
push edx
mov dword [esp + 0x20], ebp
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, ebp
jl 0x4034a8
call fcn.00418935
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push str.CLSID_sLocalServer32
push ecx
mov dword [esp + 0x50], ebp
call fcn.004021e0
xor edi, edi
add esp, 0xc
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push ebp
push eax
push SysReAllocString
mov byte [esp + 0x58], 1
mov dword [esp + 0x30], ebp
call esi
cmp eax, ebp
jne 0x4032b9
mov edi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x20], edi
cmp eax, ebp
mov ebx, eax
mov dword [esp + 0x24], ebx
je 0x403314
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push 0x4226f0
push edx
call fcn.004021e0
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebp
push ecx
push SysReAllocString
mov dword [esp + 0x30], ebp
call esi
cmp eax, ebp
jne 0x40330e
xor eax, eax
cmp edi, ebp
je 0x403306
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
mov ebx, eax
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x403323
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp ebx, ebp
jne 0x403477
call fcn.00418935
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push ebp
push ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 2
call fcn.00401a10
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x24]
mov ebx, edi
mov byte [esp + 0x4c], 3
call fcn.004078f0
add esp, 8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x44], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40338e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, ebp
je 0x40339f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0x20], edi
mov ebx, dword [esp + 0x28]
cmp dword [ebx - 0xc], ebp
je 0x403458
push ebx
lea ecx, [esp + 0x20]
call fcn.00401610
lea esi, [esp + 0x1c]
mov byte [esp + 0x44], 6
call fcn.00403840
lea esi, [esp + 0x1c]
call fcn.004038a0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x1c]
setne byte [esp + 0x13]
add eax, 0xfffffff0
mov byte [esp + 0x44], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403402
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebx, 0xfffffff0
mov byte [esp + 0x44], 1
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403421
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
cmp edi, ebp
je 0x40342c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403452
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
jmp 0x4034aa
lea eax, [ebx - 0x10]
mov byte [esp + 0x44], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403477
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, ebp
je 0x403482
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4