Function at 0x409b60
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a5f22
push eax
mov eax, 0x2230
mov dword fs:[0], esp
call fcn.0049d320
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2250]
mov dword [esp + 0x34], ecx
mov edx, dword [edi]
test edx, edx
je 0x409bad
mov esi, dword [edi + 4]
test esi, esi
je 0x409bad
mov eax, dword [edi + 0xc]
test eax, eax
je 0x409bad
mov ecx, dword [edi + 0x10]
cmp ecx, 0x80
jg 0x409bb4
xor eax, eax
jmp 0x40a1c9
push edx
push ecx
push eax
mov eax, dword [edi + 8]
push eax
push str.RegAppEntry
push esi
call dword [0x4ab118]
mov eax, dword [edi + 0xc]
mov ecx, dword [0x4bc080]
mov si, word [eax]
mov dword [esp + 0x10], ecx
neg si
sbb esi, esi
and esi, eax
test esi, esi
je 0x409c2e
mov edx, esi
shr edx, 0x10
jne 0x409bfb
and esi, 0xffff
lea ecx, [esp + 0x10]
push esi
call fcn.00403800
jmp 0x409c2e
push esi
call dword [0x4ab204]
mov ebp, eax
test ebp, ebp
je 0x409c2e
push ebp
lea ecx, [esp + 0x14]
call fcn.00403bd0
test eax, eax
je 0x409c2e
mov edx, dword [esp + 0x10]
lea eax, [ebp + ebp]
push eax
lea ecx, [ebp + ebp + 2]
push esi
push ecx
push edx
call fcn.00403330
add esp, 0x10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2248], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409c7c
mov edx, dword [0x4bc084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40a1c4
add eax, 0xfffffff4
push eax
call dword [0x4ab208]
test eax, eax
jg 0x40a1c4
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004985d0
add esp, 4
jmp 0x40a1c4
push 0
push 0x2c
lea ecx, [esp + 0x18]
call fcn.0040bcc0
mov ebx, eax
test ebx, ebx
jl 0x409e33
push ebx
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.0040b9a0
mov edi, eax
mov ebp, dword [esp + 0x2254]
mov eax, dword [edi]
mov byte [esp + 0x2248], 1
mov ecx, dword [ebp + 0x34]
lea esi, [ebp + 0x34]
cmp ecx, eax
je 0x409cff
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x409cd5
mov edx, dword [0x4bc084]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x409cdc
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x409cea
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, esi
call fcn.00403c30
jmp 0x409cff
mov ecx, esi
call fcn.00403ec0
mov edi, dword [edi]
mov dword [esi], edi
add edi, 0xfffffff4
push edi
call dword [0x4ab200]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4bc084]
mov byte [esp + 0x2248], 0
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x409d36
add eax, 0xfffffff4
push eax
call dword [0x4ab208]
test eax, eax
jg 0x409d36
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.004985d0
add esp, 4
inc ebx
lea ecx, [esp + 0x20]
push ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.0040bb20
mov esi, eax
mov ecx, dword [ebp + 0x38]
mov eax, dword [esi]
lea ebx, [ebp + 0x38]
cmp ecx, eax
mov byte [esp + 0x2248], 2
mov dword [esp + 0x2c], ebx
je 0x409d9e
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x409d74
mov edx, dword [0x4bc084]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x409d7b
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x409d89
mov edx, dword [eax - 8]
push eax
push edx
mov ecx, ebx
call fcn.00403c30
jmp 0x409d9e
mov ecx, ebx
call fcn.00403ec0
mov esi, dword [esi]
mov dword [ebx], esi
add esi, 0xfffffff4
push esi
call dword [0x4ab200]
mov eax, dword [esp + 0x20]
mov edx, dword [0x4bc084]
mov byte [esp + 0x2248], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x409dd5
add eax, 0xfffffff4
push eax
call dword [0x4ab208]
test eax, eax
jg 0x409dd5
mov edx, dword [esp + 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.004985d0
add esp, 4
mov ecx, ebx
call fcn.0040bd00
mov esi, dword [ebx]
mov edi, esi
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x30], eax
jae 0x409e14
mov ax, word [esi]
cmp ax, 0x20
je 0x409e03
push edi
mov word [edi], ax
call dword [0x4ab594]
mov edi, eax
push esi
call dword [0x4ab594]
mov esi, eax
mov eax, dword [esp + 0x30]
cmp esi, eax
jb 0x409dee
mov word [edi], 0
mov ebx, dword [ebx]
sub esi, edi
mov edi, dword [esp + 0x2250]
mov eax, dword [ebx - 8]
sar esi, 1
sub eax, esi
mov dword [ebx - 8], eax
jmp 0x409eb5
mov ebp, dword [esp + 0x2254]
mov ecx, 0x4cb5ac
test ecx, ecx
lea esi, [ebp + 0x38]
mov dword [esp + 0x2c], esi
jne 0x409e4e
xor eax, eax
jmp 0x409e59
push 0x4cb5ac
call dword [0x4ab204]
push 0x4cb5ac
push eax
mov ecx, esi
call fcn.00403c30
mov eax, dword [ebp + 0x34]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x409eb5
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x409e85
mov edx, dword [0x4bc084]
add eax, 0xfffffff4
cmp eax, edx
jne 0x409e8c
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x409e9b
mov edx, dword [ecx - 8]
push ecx
push edx
lea ecx, [ebp + 0x34]
call fcn.00403c30
jmp 0x409eb5
lea esi, [ebp + 0x34]
mov ecx, esi
call fcn.00403ec0
mov eax, dword [esp + 0x10]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [0x4ab200]
mov eax, dword [edi]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
push eax
mov eax, dword [edi + 8]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push str.RegAppPath
push ecx
call dword [0x4ab118]
mov esi, dword [edi + 0xc]
cmp word [esi], 0
je 0x409ee0
test esi, esi
jne 0x409f16
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4bc084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x409f0f
add eax, 0xfffffff4
push eax
call dword [0x4ab208]
test eax, eax
jg 0x409f0f
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004985d0
add esp, 4
xor eax, eax
jmp 0x40a1c9
push esi
call fcn.0042f7e0
mov cx, word [0x4cb66c]
mov dx, word [0x4bce4c]
push ecx
push edx
push esi
mov edi, eax
call fcn.0042f6d0
add esp, 0x10
lea ecx, [esp + 0x18]
push esi
call fcn.0040b840
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x224c], 3
call fcn.0040a1f0
lea ebx, [ebp + 0x2c]
mov dword [ebp + 0x28], eax
push ebx
push edi
push esi
call fcn.0042f840
lea esi, [ebp + 0x30]
push esi
push edi
push eax
call fcn.0042f840
mov esi, dword [esi]
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x258]
mov ebx, dword [ebx]
add esp, 0x18
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x240]
push ecx
mov ecx, dword [ebp + 0x28]
lea eax, [esp + 0x28]
push edx
push eax
push esi
push ebx
push ecx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0x1000
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 0x24], 1
jne 0x40a181
cmp word [esp + 0x240], 0
je 0x40a181
mov eax, dword [esp + 0x28]
test eax, eax
jbe 0x40a181
lea edx, [esp + 0x240]
lea ecx, [esp + 0x14]
push edx
call fcn.0040b840
mov eax, dword [ebp + 0x34]
lea esi, [ebp + 0x34]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x244]
push eax
push ecx
mov byte [esp + 0x2254], 4
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0x240]
push edx
call ebx
test eax, eax
je 0x40a15d
lea eax, [esp + 0x14]
lea ecx, [ebp + 0x24]
push eax
mov dword [ebp + 0x7c], 1
call fcn.00405600
lea ecx, [esp + 0x240]
push ecx
call fcn.00436210
add esp, 4
test eax, eax
jne 0x40a062
push str.0.0.0.0
lea ecx, [ebp + 0x1c]
call fcn.00403510
jmp 0x40a15d
mov ecx, dword [esp + 0x2250]
push str.RegVersionFile
call fcn.00408b60
push eax
lea ecx, [esp + 0x20]
call fcn.0040b840
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x2248], 5
mov eax, dword [edx - 8]
test eax, eax
jne 0x40a09a
push esi
lea ecx, [esp + 0x20]
call fcn.00405600
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x244]
push ecx
push edx
call edi
lea eax, [esp + 0x240]
push eax
call ebx
test eax, eax
jne 0x40a0ce
mov esi, dword [esi]
mov ecx, dword [esp + 0x14]
push esi
lea edx, [esp + 0x244]
push ecx
push edx
call edi
lea eax, [esp + 0x240]
push eax
call fcn.00436210
add esp, 4
test eax, eax
jne 0x40a0ec
push str.0.0.0.0
lea ecx, [ebp + 0x1c]
jmp 0x40a147
lea ecx, [esp + 0x38]
push 0x104
lea edx, [esp + 0x244]
push ecx
push edx
call fcn.0040a2a0
add esp, 0xc
add ebp, 0x1c
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
call fcn.00403510
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40a14c
mov edx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x244]
push edx
push eax
call edi
lea ecx, [esp + 0x240]
push ecx
call ebx
test eax, eax
jne 0x40a14c
push str.0.0.0.0
mov ecx, ebp
call fcn.00403510
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2248], 4
call fcn.00403ba0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2248], 3
call fcn.00403ba0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2248], 0
call fcn.00403ba0
jmp 0x40a1b0
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4bc084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40a1b0
add eax, 0xfffffff4
push eax
call dword [0x4ab208]
test eax, eax
jg 0x40a1b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.004985d0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x2248], 0xffffffff
call fcn.00403ba0
mov eax, 1
mov ecx, dword [esp + 0x2240]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x223c
ret 8