Function at 0x1001f400
Capabilities:
Query or enumerate registry key
Read .ini file
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6df8
call fcn.100292d0
mov eax, dword [0x10048440]
xor eax, esp
mov dword [esp + 0x6df4], eax
mov eax, dword [esp + 0x6dfc]
push ebx
push ebp
mov ebp, dword [esp + 0x6e08]
push esi
push edi
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x866]
push ebx
push ecx
mov dword [esp + 0x1c], eax
mov word [esp + 0x86c], bx
call fcn.10028cf0
push 0x3fe
lea edx, [esp + 0x72]
push ebx
push edx
mov dword [esp + 0x54], 0x104
mov dword [esp + 0x44], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x78], bx
call fcn.10028cf0
push 0x1de
lea eax, [esp + 0x49c]
push ebx
mov ecx, 8
mov esi, str.Default_Profile
lea edi, [esp + 0x480]
push eax
mov dword [esp + 0x4c], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.10028cf0
push 0x639a
lea ecx, [esp + 0xa92]
push ebx
push ecx
mov word [esp + 0xa98], bx
call fcn.10028cf0
add esp, 0x30
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov word [ebp + 0x190], bx
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.SoftwareSoftland]
mov word [esp + eax + 0x60], cx
add eax, 2
cmp cx, bx
jne 0x1001f4d0
lea edi, [esp + 0x60]
add edi, 0xfffffffe
jmp 0x1001f4f0
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x1001f4f0
mov ebx, dword [0x1003de30]
mov eax, 0x100497e4
mov dword [edi], ebx
mov edx, eax
jmp 0x1001f510
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001f510
lea edi, [esp + 0x60]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1001f524
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x60]
add edi, 0xfffffffe
jmp 0x1001f550
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1001f550
mov eax, str.Printers
mov dword [edi], ebx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001f565
lea edi, [esp + 0x60]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1001f580
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x60]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1001f5a3
lea eax, [esp + 0x60]
mov dword [edi], ebx
lea edx, [eax + 2]
jmp 0x1001f5c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001f5c0
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
mov esi, ecx
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x1001f5d5
sub ecx, esi
lea edi, [esp + 0x60]
mov edx, ecx
add edi, 0xfffffffe
jmp 0x1001f5f0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1001f5f0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + eax*2 + 0x60]
and ecx, 3
push 0x2c
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.1001feb0
lea edi, [esp + 0x68]
add esp, 8
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1001f620
mov eax, dword [0x1003de30]
mov dword [edi], eax
lea eax, [esp + 0x60]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x1001f640
mov ecx, dword [str.Profiles]
mov edx, dword [0x1003e320]
mov dword [eax], ecx
mov ecx, dword [0x1003e324]
mov dword [eax + 4], edx
mov edx, dword [0x1003e328]
mov dword [eax + 8], ecx
mov cx, word [0x1003e32c]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x1c]
push edx
push 0x20019
mov word [eax + 0x10], cx
push 0
lea eax, [esp + 0x6c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebx, dword [esp + 0x6e14]
mov edi, 1
jne 0x1001f8c8
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x3c]
push 0
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x888]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [esp + 0x2c], 0
je 0x1001f7fa
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor esi, esi
nop
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x20]
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x674]
push edx
push esi
push eax
mov dword [esp + 0x50], 0xff
call edi
test eax, eax
jne 0x1001f7e9
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x1003de34
lea edx, [esp + 0x668]
push edx
push eax
call fcn.10020610
add esp, 0x10
test eax, eax
jne 0x1001f75d
cmp dword [esp + 0x14], eax
jne 0x1001f7e9
push 0x100a8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test ebx, ebx
movzx ecx, word [ebp + 0x190]
mov dword [ebp + ecx*4], eax
je 0x1001f79e
movzx edx, word [ebp + 0x190]
mov eax, dword [ebp + edx*4]
mov edx, dword [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x668]
push ecx
push edx
call fcn.1001edf0
add esp, 0x10
jmp 0x1001f7e1
movzx eax, word [ebp + 0x190]
mov ecx, dword [ebp + eax*4]
push ecx
call fcn.100189f0
movzx eax, word [ebp + 0x190]
mov eax, dword [ebp + eax*4]
add esp, 4
lea edx, [esp + 0x660]
add eax, 0xfe90
lea esp, [esp]
movzx ecx, word [edx]
mov word [eax], cx
add edx, 2
add eax, 2
test cx, cx
jne 0x1001f7d0
add word [ebp + 0x190], 1
add esi, 1
cmp esi, 0x32
jb 0x1001f700
mov edi, 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push str.ActiveProfile
push 0
push ebx
call fcn.1001ff20
add esp, 0x10
test eax, eax
mov dword [esp + 0x14], eax
jne 0x1001f84e
mov eax, dword [esp + 0x28]
push 0xfe
push eax
lea ecx, [esp + 0x468]
push ecx
call fcn.10028ca2
mov edx, dword [esp + 0x34]
push edx
call fcn.10028a01
add esp, 0x10
mov dword [esp + 0x24], edi
lea eax, [esp + 0x14]
push eax
push 0x1004029c
push 0
push ebx
call fcn.10020610
add esp, 0x10
test eax, eax
jne 0x1001f873
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x1a0], ecx
jmp 0x1001f879
mov dword [ebp + 0x1a0], edi
lea edx, [esp + 0x14]
push edx
push str.PropagateDefaultProfile
push 0
push ebx
call fcn.10020610
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x24]
mov dword [ebp + 0x1a4], eax
lea eax, [esp + 0x24]
push eax
push str.ShowPrivateProfiles
push 0
push ebx
call fcn.10020610
add esp, 0x20
test eax, eax
jne 0x1001f8c0
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x1a8], ecx
jmp 0x1001f8cc
mov dword [ebp + 0x1a8], edi
jmp 0x1001f8cc
mov ebx, dword [esp + 0x10]
cmp word [ebp + 0x190], 0
jne 0x1001f915
push 0x100a8
push 0x40
mov word [ebp + 0x190], di
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
mov dword [ebp], eax
call fcn.100189f0
mov edx, dword [ebp]
add esp, 4
mov dword [ebp + 0x194], edx
mov dword [ebp + 0x1a0], edi
mov dword [ebp + 0x1a4], 0
mov dword [ebp + 0x1a8], edi
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.100210a0
mov esi, dword [esp + 0x20]
mov eax, esi
add esp, 8
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001f930
sub eax, edx
sar eax, 1
je 0x1001fb79
push 0x10040298
push esi
call fcn.1002ab84
add esp, 8
test eax, eax
jne 0x1001f97f
mov ecx, dword [esp + 0x18]
push 0x10040294
push ecx
call fcn.1002ab84
add esp, 8
test eax, eax
je 0x1001fb65
push eax
call fcn.1002aa42
add esp, 4
jmp 0x1001fb65
movzx edx, word [ebp + 0x190]
push eax
mov dword [esp + 0x3c], edx
call fcn.1002aa42
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
push 0x31ce
lea ecx, [esp + 0xa70]
push ecx
push 0
push 0x1004028c
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, dword [esp + 0x10]
push 2
push 0x1003fd48
push edi
lea ebx, [esp + 0xa74]
call fcn.1002a1e9
add esp, 0xc
test eax, eax
je 0x1001f9da
cmp dword [esp + 0x24], 0
jne 0x1001f9e4
push ebp
push edi
call fcn.1001bff0
add esp, 8
lea eax, [esp + 0xa68]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001f9f0
sub eax, edx
sar eax, 1
je 0x1001fb65
jmp 0x1001fa10
movzx edx, word [ebp + 0x190]
sub edx, dword [esp + 0x38]
cmp edx, 0x32
jge 0x1001fb65
mov ecx, str.SECTION_NOVA_PROFILEINFO
mov eax, ebx
jmp 0x1001fa30
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001fa56
test dx, dx
je 0x1001fa52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001fa56
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001fa30
xor eax, eax
jmp 0x1001fa5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1001fb2d
push 0x100a8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp dword [esp + 0x6e14], 0
mov esi, eax
movzx eax, word [ebp + 0x190]
mov dword [ebp + eax*4], esi
push esi
je 0x1001fac7
push ebx
push edi
call fcn.1001be50
add esp, 0xc
cmp dword [esi + 0x100a0], 0
je 0x1001fb1b
push 2
push 0x1003fd48
push edi
call fcn.1002a1e9
add esp, 0xc
test eax, eax
jne 0x1001fb1b
push eax
push esi
lea ecx, [esi + 0xfe90]
push ecx
push edi
call fcn.1001edf0
add esp, 0x10
jmp 0x1001fb1b
call fcn.100189f0
lea edi, [esi + 0xfe90]
mov edx, edi
add esp, 4
mov eax, ebx
sub edx, ebx
jmp 0x1001fae0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1001fae0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
push 0
push str.AllowChangeProfile
push edi
push eax
call fcn.100214e0
mov edi, dword [esp + 0x24]
add esp, 0x14
test eax, eax
jne 0x1001fb1b
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x100a0], ecx
mov eax, 1
mov dword [esi + 0x1009c], eax
add word [ebp + 0x190], ax
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001fb32
sub eax, edx
sar eax, 1
lea ebx, [ebx + eax*2 + 2]
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001fb50
sub eax, edx
sar eax, 1
jne 0x1001fa10
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x10]
mov edi, 1
push 2
push 0x1003fd48
push ebx
call fcn.1002a1e9
add esp, 0xc
test eax, eax
je 0x1001fb94
cmp dword [esp + 0x24], 0
jne 0x1001fbdf
cmp dword [ebp + 0x1a4], 0
je 0x1001fbdf
lea eax, [ebp + 0x1ac]
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x1001fbb0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x1001fbb0
sub ecx, esi
sar ecx, 1
je 0x1001fbdf
lea edx, [esp + 0x460]
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1001fbd0
xor esi, esi
cmp word [ebp + 0x190], si
jbe 0x1001fc48
lea ebx, [ebx]
mov eax, dword [ebp + esi*4]
add eax, 0xfe90
lea ecx, [esp + 0x460]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1001fc26
test dx, dx
je 0x1001fc22
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1001fc26
add ecx, 4
add eax, 4
test dx, dx
jne 0x1001fc00
xor eax, eax
jmp 0x1001fc2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1001fc3e
movzx eax, word [ebp + 0x190]
add esi, edi
cmp esi, eax
jb 0x1001fbf0
jmp 0x1001fc48
mov ecx, dword [ebp + esi*4]
mov dword [ebp + 0x194], ecx
cmp dword [ebp + 0x194], 0
jne 0x1001fc5a
mov edx, dword [ebp]
mov dword [ebp + 0x194], edx
push 0x100a8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0x194]
push 0x100a8
push ecx
push eax
mov dword [ebp + 0x198], eax
call fcn.10029730
mov ecx, dword [esp + 0x6e10]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10028cdf
add esp, 0x6df8
ret