Function at 0x4386a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0191
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5e6468]
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 eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x234], eax
cmp esi, ebx
je 0x438872
xor edi, edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], ebx
mov dword [ebp - 4], ebx
mov edx, dword [0x5f22b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f22b0
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
push esi
lea ecx, [ebp - 0x220]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_s
push ecx
mov byte [ebp - 4], 1
call fcn.0042fa10
add esp, 0xc
mov dword [ebp - 0x23c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x238], VariantCopy
xor esi, esi
lea esp, [esp]
mov ecx, dword [ebp - 0x220]
mov eax, dword [ebp + esi*4 - 0x23c]
lea edx, [ebp - 0x224]
push edx
push 1
push ebx
push ecx
push eax
mov dword [ebp - 0x224], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x438838
xor eax, eax
cmp edi, ebx
je 0x43877a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], ebx
cmp eax, ebx
jne 0x438838
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call fcn.0055e2a0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x218]
push edx
push ebx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x104
call fcn.00434aa0
test eax, eax
jne 0x438838
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00426f30
push ebx
push 0x5c4a04
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.004270c0
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x438890
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438838
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, 2
jb 0x438740
mov byte [ebp - 4], bl
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 0x438867
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x438872
push edi
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 - 0x10]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x21c]
mov eax, edx
lea esi, [eax + 2]
jmp 0x4388a0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4388a0
mov ecx, dword [ebp - 0x234]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.004252e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4388e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
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 0x438907
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x438918
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x438874