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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520a77
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x57c8b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x1c], 0
je 0x434322
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00494430
call fcn.00409390
mov ecx, eax
test ecx, ecx
je 0x43433d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x428]
call fcn.0040ac20
test al, al
jne 0x434183
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434161
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040a4c0
mov dword [ebp - 4], 1
call fcn.00409390
mov ecx, eax
test ecx, ecx
je 0x434347
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
push str.miniby3
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.0040ac20
test al, al
jne 0x4341d1
push 7
push str.miniby3
lea ecx, [ebp - 0x424]
call fcn.0040a4c0
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.004708f0
add esp, 0xc
mov edx, dword [ebp - 0x424]
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 0x434216
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov eax, esi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x434237
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
mov dword [ebp - 0x438], 1
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x434], 0x104
lea ecx, [ebp - 0x429]
push eax
call fcn.004310f0
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x438]
push ecx
push 0x535c84
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [ebp - 0x43c]
test eax, eax
mov eax, esi
setne bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4342bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x434300
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x434300
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 - 0x430]
push str.mini_external
push str.general
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x430]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x434322
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490238
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408b70
push 0x80004005
call fcn.00408b70
int3