Function at 0x4085b0
Capabilities:
Delete file
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459c68
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4724e4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], ecx
mov byte [ebp - 0x124], 0
push 0x103
push 0
lea eax, [ebp - 0x123]
push eax
call fcn.004463a0
add esp, 0xc
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x238]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x4086a1
mov dword [ebp - 0x244], 0x104
mov dword [ebp - 0x240], 1
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x240]
push edx
push 0
push str.UPDATE_VER
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x408692
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4088ed
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4086a8
xor eax, eax
jmp 0x4088ed
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x25c]
call fcn.004083c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402c20
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x18]
call fcn.00402e80
mov dword [ebp - 0x234], eax
mov byte [ebp - 0x22c], 0
push 0x103
push 0
lea eax, [ebp - 0x22b]
push eax
call fcn.004463a0
add esp, 0xc
lea ecx, [ebp - 0x22c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x22c]
add edx, 0xffffffff
mov dword [ebp - 0x260], edx
mov eax, dword [ebp - 0x260]
mov cl, byte [eax + 1]
mov byte [ebp - 0x261], cl
add dword [ebp - 0x260], 1
cmp byte [ebp - 0x261], 0
jne 0x408726
mov edi, dword [ebp - 0x260]
mov edx, dword [str.FT11_ck.EXE]
mov dword [edi], edx
mov eax, dword [0x464fc0]
mov dword [edi + 4], eax
mov ecx, dword [0x464fc4]
mov dword [edi + 8], ecx
mov dl, byte [0x464fc8]
mov byte [edi + 0xc], dl
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x22c]
push ecx
push 0x464fcc
push 0xbd
mov ecx, dword [ebp - 0x25c]
call fcn.00408c20
movzx edx, al
test edx, edx
jne 0x4087c1
mov dword [ebp - 0x248], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403140
mov eax, dword [ebp - 0x248]
jmp 0x4088ed
push ecx
mov ecx, esp
mov dword [ebp - 0x24c], esp
lea eax, [ebp - 0x22c]
push eax
call fcn.00402580
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x25c]
call fcn.00408910
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 1
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x10]
call fcn.00402e80
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x25c]
call fcn.004083c0
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x14]
call fcn.00402e80
push eax
mov ecx, dword [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x25c]
call fcn.00407e60
cmp eax, 1
jne 0x40887d
mov dword [ebp - 0x250], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00403140
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00403140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403140
mov eax, dword [ebp - 0x250]
jmp 0x4088ed
mov dword [ebp - 0x254], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00403140
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00403140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403140
mov eax, dword [ebp - 0x254]
jmp 0x4088ed
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret 8