Function at 0x1004a6d0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ca6f6
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x1010445c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], cx
cmp dword [eax + 0x44], 8
lea edi, [eax + 0x30]
mov byte [ebp - 4], 1
mov dword [ebp - 0x46c], edi
jb 0x1004a762
mov eax, dword [edi]
mov dword [ebp - 0x46c], eax
mov esi, dword [edi + 0x10]
test esi, esi
je 0x1004a7e2
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1009c2f0
mov edx, 0x100
add esp, 0xc
mov ecx, 0x100d348c
mov dword [ebp - 0x470], edx
nop
movzx eax, word [ecx]
cmp ax, dx
jae 0x1004a870
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x110], 1
cmp ecx, 0x100d348e
jne 0x1004a790
mov edx, dword [ebp - 0x46c]
lea ecx, [edx + esi*2]
mov esi, edx
cmp edx, ecx
jae 0x1004a7e2
movzx eax, word [esi]
cmp ax, word [ebp - 0x470]
jae 0x1004a7db
cmp byte [ebp + eax - 0x110], 0
jne 0x1004a867
add esi, 2
cmp esi, ecx
jb 0x1004a7c1
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x1004a99e
xor eax, eax
mov dword [ebp - 0x458], 0
cmp dword [edi + 0x10], esi
mov ecx, esi
mov word [ebp - 0x468], ax
mov eax, edi
cmovb ecx, dword [edi + 0x10]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x454], 7
jb 0x1004a81e
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x468]
call fcn.10014220
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x1004a8d4
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004a8ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004abbf
jmp 0x1004a8ca
sub esi, edx
sar esi, 1
jmp 0x1004a7e5
mov ecx, dword [ebp - 0x46c]
lea eax, [ecx + esi*2]
mov esi, ecx
mov dword [ebp - 0x470], eax
cmp ecx, eax
jae 0x1004a7e2
nop dword [eax]
movzx edx, word [esi]
mov ecx, 1
mov eax, 0x100d348c
nop dword [eax]
cmp word [eax], dx
je 0x1004a8bd
add eax, 2
sub ecx, 1
jne 0x1004a8a0
add esi, 2
cmp esi, dword [ebp - 0x470]
jb 0x1004a890
jmp 0x1004a7e2
sub esi, dword [ebp - 0x46c]
sar esi, 1
jmp 0x1004a7e5
push edx
push ecx
call fcn.10074e52
add esp, 8
movups xmm0, xmmword [ebp - 0x468]
xor eax, eax
inc esi
mov word [ebp - 0x468], ax
mov eax, dword [edi + 0x10]
movups xmmword [ebp - 0x450], xmm0
movq xmm0, qword [ebp - 0x458]
movq qword [ebp - 0x440], xmm0
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 7
cmp eax, esi
jb 0x1004abc4
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 8
jb 0x1004a92e
mov edi, dword [edi]
push ecx
lea eax, [edi + esi*2]
push eax
lea ecx, [ebp - 0x468]
call fcn.10014220
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x1004a97e
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004a974
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004abc9
push edx
push ecx
call fcn.10074e52
add esp, 8
movups xmm0, xmmword [ebp - 0x468]
movups xmmword [ebp - 0x438], xmm0
movq xmm0, qword [ebp - 0x458]
movq qword [ebp - 0x428], xmm0
jmp 0x1004a9b0
push 0x12
push str.HKEY_LOCAL_MACHINE
lea ecx, [ebp - 0x450]
call fcn.10014220
lea eax, [ebp - 0x450]
push eax
call fcn.100480f0
add esp, 4
mov dword [ebp - 0x46c], 0
cmp dword [ebp - 0x424], 8
lea edx, [ebp - 0x46c]
mov ecx, eax
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push edx
push 0x20219
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004aa73
mov edi, dword [ebp - 0x474]
cmp dword [edi + 0x5c], 8
lea eax, [edi + 0x48]
mov esi, dword [ebp - 0x46c]
jb 0x1004aa10
mov eax, dword [eax]
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x470], 0x208
push ecx
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x474]
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004aa68
mov eax, dword [ebp - 0x474]
cmp eax, 1
je 0x1004aa4d
cmp eax, 2
jne 0x1004aa68
mov eax, dword [ebp - 0x470]
test eax, eax
je 0x1004aaac
test al, 1
jne 0x1004aa68
shr eax, 1
cmp word [ebp + eax*2 - 0x422], 0
je 0x1004aab5
test esi, esi
je 0x1004aa73
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x438]
call fcn.10004d80
lea ecx, [ebp - 0x450]
call fcn.10004d80
mov eax, dword [ebp - 0x478]
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.100751d1
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov word [ebp - 0x420], ax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1009c2f0
lea eax, [edi + 0x18]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1004aad6
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
push 0xffffffffffffffff
push 0x100da2dc
push str.three_end
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x1004aa68
mov dword [ebp - 0x478], 1
test esi, esi
je 0x1004ab21
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x1004ab5d
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004ab53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004abce
push edx
push ecx
call fcn.10074e52
add esp, 8
mov edx, dword [ebp - 0x43c]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
cmp edx, 8
jb 0x1004aa89
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004abb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004abd3
push edx
push ecx
call fcn.10074e52
add esp, 8
jmp 0x1004aa89
call fcn.1009fa75
call fcn.100076b0
call fcn.1009fa75
call fcn.1009fa75
call fcn.1009fa75
int3