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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5285d2
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x5898bc]
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.004b2720
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0049bd50
call fcn.004097e0
mov ecx, eax
test ecx, ecx
je 0x43686e
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.0040afe0
test al, al
jne 0x436618
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4365f6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.0040a830
mov dword [ebp - 4], 1
call fcn.004097e0
mov ecx, eax
test ecx, ecx
je 0x436878
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.0040afe0
test al, al
jne 0x436666
push 0xa
push str.clean_beta
lea ecx, [ebp - 0x430]
call fcn.0040a830
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.00479500
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 0x4366ab
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 0x4366cc
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 0x43670e
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4366f4
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.00498678
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004b2720
mov eax, dword [0x591fc0]
add esp, 0xc
mov dword [ebp - 0x440], 1
mov dword [ebp - 0x43c], 0x104
test al, 1
jne 0x436753
or eax, 1
mov dword [0x591fbc], 0
mov dword [0x591fc0], eax
mov byte [ebp - 0x421], 0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 7
push eax
call fcn.00472b55
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 0x432b70
push 0x591fbc
call fcn.00473b2b
add esp, 0x10
test eax, eax
je 0x43684e
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 9
push eax
call fcn.00472b8f
add esp, 4
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x440]
push eax
push 0x53ec84
push 0x591fc8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4367f2
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
jmp 0x4366db
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x436811
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
jmp 0x4366db
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 0x4366db
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xa
push eax
call fcn.00472bd1
add esp, 4
mov byte [ebp - 4], 8
test al, al
jne 0x436882
call fcn.00473bfc
push 0x80004005
call fcn.00408fc0
push 0x80004005
call fcn.00408fc0
sub esp, 8
lea eax, [ebp - 0x438]
mov ecx, esp
push eax
call fcn.00408860
call fcn.0040ae00
int3