Function at 0x40a140
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566a81
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5c5678]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x238], eax
cmp esi, ebx
je 0x40a322
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 4], ebx
mov edx, dword [0x5ce94c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5ce94c
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_s
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.00424dc0
add esp, 8
mov dword [ebp - 0x240], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x23c], htonl
jmp 0x40a1e0
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp + ebx*4 - 0x240]
lea ecx, [ebp - 0x228]
push ecx
push 1
xor esi, esi
push esi
push edx
push eax
mov dword [ebp - 0x228], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40a2e1
mov ecx, dword [ebp - 0x230]
xor eax, eax
cmp ecx, esi
je 0x40a222
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x230], ecx
cmp eax, esi
jne 0x40a2e1
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push esi
push eax
mov word [ebp - 0x21c], dx
call fcn.00545940
add esp, 0xc
push esi
lea ecx, [ebp - 0x230]
push ecx
lea edi, [ebp - 0x234]
lea esi, [ebp - 0x21c]
mov dword [ebp - 0x234], 0x104
call fcn.00422120
test eax, eax
jne 0x40a2e1
lea edx, [ebp - 0x220]
push edx
mov ecx, esi
call fcn.00425130
push 0
push 0x58c9bc
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 2
call fcn.00422c80
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a340
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a2e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, 2
jb 0x40a1e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a311
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x40a322
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 - 0x14]
xor ecx, ebp
call fcn.0053d78d
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x220]
mov eax, edx
lea esi, [eax + 2]
jmp 0x40a350
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a350
sub eax, esi
mov esi, dword [ebp - 0x238]
sar eax, 1
push eax
push edx
call fcn.0040f460
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a392
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a3b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x40a3c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40a324