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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536c12
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x5917ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0049f2f0
call fcn.0040cb90
mov ecx, eax
test ecx, ecx
je 0x439fbe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x42c]
call fcn.0040e280
test al, al
jne 0x439d68
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439d46
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.0040dbe0
mov dword [ebp - 4], 1
call fcn.0040cb90
mov ecx, eax
test ecx, ecx
je 0x439fc8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
push str.clean_beta
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 2
call fcn.0040e280
test al, al
jne 0x439db6
push 0xa
push str.clean_beta
lea ecx, [ebp - 0x430]
call fcn.0040dbe0
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0047c850
add esp, 0xc
mov edx, dword [ebp - 0x430]
or esi, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x439dfb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x42c]
mov eax, esi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x439e1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x428]
cmp dword [eax - 0xc], 0
jne 0x439e5e
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x439e44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b8b8
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004c0d00
mov eax, dword [0x599ee0]
add esp, 0xc
mov dword [ebp - 0x440], 1
mov dword [ebp - 0x43c], 0x104
test al, 1
jne 0x439ea3
or eax, 1
mov dword [0x599edc], 0
mov dword [0x599ee0], eax
mov byte [ebp - 0x421], 0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 7
push eax
call fcn.00475ea5
lea eax, [ebp - 0x438]
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x421]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x448]
push eax
push 0x436310
push 0x599edc
call fcn.00476e7d
add esp, 0x10
test eax, eax
je 0x439f9e
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 9
push eax
call fcn.00475edf
add esp, 4
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x440]
push eax
push 0x54d334
push 0x599ee8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x439f42
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
jmp 0x439e2b
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x439f61
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
jmp 0x439e2b
push str.config.set
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x428]
push str.verinfo
push str.general
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
jmp 0x439e2b
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xa
push eax
call fcn.00475f21
add esp, 4
mov byte [ebp - 4], 8
test al, al
jne 0x439fd2
call fcn.00476f4e
push 0x80004005
call fcn.0040c3e0
push 0x80004005
call fcn.0040c3e0
sub esp, 8
lea eax, [ebp - 0x438]
mov ecx, esp
push eax
call fcn.0040bca0
call fcn.0040e0a0
int3