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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52870f
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x5898bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x5916f0]
test ecx, ecx
jne 0x437034
push 0x588310
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5916f0], 0
jne 0x43701b
push 0x1c
call fcn.004436d0
mov esi, eax
add esp, 4
mov dword [ebp - 0x434], esi
test esi, esi
je 0x437013
lea ecx, [esi + 4]
mov dword [esi], vtable._BaseModule::CCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x437015
xor esi, esi
mov dword [0x5916f0], esi
push 0x588310
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x5916f0]
test ecx, ecx
jne 0x437034
xor eax, eax
jmp 0x437096
mov eax, dword [0x5916ec]
test eax, eax
jne 0x437096
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x5916ec], 0
jne 0x437086
push 0x64
call fcn.004436d0
add esp, 4
mov dword [ebp - 0x434], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x437071
mov ecx, eax
call fcn.00421cf0
mov ecx, eax
jmp 0x437073
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp - 0x434], eax
mov dword [0x5916ec], ecx
mov eax, dword [0x5916f0]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [0x5916ec]
mov ecx, eax
call fcn.00422730
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0040b110
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x438], esi
mov edi, dword [esi - 0xc]
mov dword [ebp - 4], 1
test edi, edi
js 0x437443
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4370e9
push edi
lea ecx, [ebp - 0x438]
call fcn.0040a590
mov esi, dword [ebp - 0x438]
lea eax, [edi + 1]
push eax
push esi
call fcn.004dfa9f
add esp, 8
cmp edi, dword [esi - 8]
jg 0x437443
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp dword [esi - 0xc], eax
jl 0x437409
push 0x53e424
push esi
call fcn.004b2b73
add esp, 8
test eax, eax
je 0x437409
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x437409
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 0x43744d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
push str.bizhi123456789
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 2
call fcn.0040afe0
test al, al
jne 0x4371a2
push 0xe
push str.bizhi123456789
lea ecx, [ebp - 0x430]
call fcn.0040a830
mov byte [ebp - 4], 3
call fcn.004097e0
mov ecx, eax
test ecx, ecx
je 0x437457
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x42c]
call fcn.0040afe0
test al, al
jne 0x437208
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4371e6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.0040a830
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00479500
add esp, 0xc
mov edx, dword [ebp - 0x42c]
or edi, 0xffffffff
mov byte [ebp - 4], 7
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43724d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x430]
mov eax, edi
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43726e
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 0x4372ac
lea edx, [eax - 0x10]
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437295
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jmp 0x43741e
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004b2720
mov eax, dword [0x591f30]
add esp, 0xc
mov dword [ebp - 0x448], 1
mov dword [ebp - 0x444], 0x104
test al, 1
jne 0x4372f1
or eax, 1
mov dword [0x591f2c], 0
mov dword [0x591f30], eax
mov byte [ebp - 0x421], 0
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 9
push eax
call fcn.00472b55
lea eax, [ebp - 0x440]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x421]
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x450]
push eax
push 0x4324d0
push 0x591f2c
call fcn.00473b2b
add esp, 0x10
test eax, eax
je 0x4373ec
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 0xb
push eax
call fcn.00472b8f
add esp, 4
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x448]
push eax
push 0x53ec84
push 0x591f38
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x437390
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
jmp 0x43727d
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4373af
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
jmp 0x43727d
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.sysvalue
push str.general
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
jmp 0x43727d
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 0xc
push eax
call fcn.00472bd1
add esp, 4
mov byte [ebp - 4], 0xa
test al, al
je 0x437477
jmp 0x437461
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x437428
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00498678
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00408fc0
push 0x80004005
call fcn.00408fc0
push 0x80004005
call fcn.00408fc0
sub esp, 8
lea eax, [ebp - 0x440]
mov ecx, esp
push eax
call fcn.00408860
call fcn.0040ae00
call fcn.00473bfc
int3