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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x100416e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edx + 0x30]
push ebx
push esi
push edi
mov dword [ebp - 0x638], eax
mov edi, ecx
mov eax, dword [edx + 4]
push 0x90
push edi
mov dword [ebp - 0x654], edx
mov esi, dword [eax + 0x2c]
mov dword [ebp - 0x634], edi
mov dword [ebp - 0x628], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x8e
mov ebx, eax
push edi
mov dword [ebp - 0x624], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x63c], eax
test esi, esi
je 0x1002ca34
cmp word [esi], 0
je 0x1002ca34
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002ca10
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x1002ca34
push 0x100433ac
push esi
push 0x100021c0
jmp 0x1002ca3f
push 0x100433ac
push esi
push 0x100021b4
lea eax, [ebp - 0x620]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x14
push 0x1c
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x62c], edi
test edi, edi
je 0x1002d4be
mov eax, dword [ebp - 0x638]
mov edx, 0x100434ec
mov ecx, dword [ebp - 0x628]
push 0
push 0x104
mov dword [eax + 0x10], edi
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov eax, 0xfffe
and word [edi + 0xe], ax
lea eax, [ebp - 0x210]
push eax
push 0x100433a0
call fcn.100235b0
test ax, ax
jne 0x1002ccd7
xor edi, edi
push 0
push edi
push 0x150
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
xor eax, eax
push 0x104
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x418]
push eax
push ebx
push dword [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x418], 0
jne 0x1002cb26
mov esi, dword [0x1004338c]
lea eax, [ebp - 0x418]
push 0x104
push eax
push ebx
mov ecx, esi
call dword [0x10044350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1002cbec
cmp ebx, 0xaea2
jne 0x1002cbd1
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cb60
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1002cbd1
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cb94
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x212], 0x29
jne 0x1002cbd1
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cbb7
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x210], 0x28
je 0x1002cbec
mov ebx, dword [ebp - 0x624]
inc edi
cmp edi, 4
jl 0x1002cac5
mov esi, dword [ebp - 0x62c]
add esi, 8
jmp 0x1002cc02
mov esi, dword [ebp - 0x62c]
add esi, 8
mov dword [ebp - 0x640], esi
mov dword [esi], ebx
cmp edi, 4
jl 0x1002cc3c
push 0
push 0
push 0x150
push dword [ebp - 0x624]
mov dword [ebp - 0x640], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x634]
lea edx, [ebp - 0x620]
push 0x100434ec
push 0x10043500
mov dword [esi], eax
call fcn.1002e1e0
mov ebx, dword [esi]
cmp ebx, 0xaea2
jne 0x1002ccf4
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cc51
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x1002d4dc
xor eax, eax
mov word [ebp + ecx - 0x210], ax
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cc86
sub ecx, edx
lea edx, [ebp - 0x20e]
sar ecx, 1
lea edx, [edx + ecx*2]
mov esi, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002cca3
mov ebx, dword [ebp - 0x628]
sub esi, ecx
sar esi, 1
mov ecx, dword [ebx + 0x7c]
lea eax, [ebx + 0x6c]
push eax
push esi
call fcn.10032a00
mov edi, dword [ebp - 0x62c]
mov dword [edi + 4], eax
test eax, eax
jne 0x1002cd00
jmp 0x1002d4be
push 0
push 0
push 0x150
lea esi, [edi + 8]
push ebx
mov dword [ebp - 0x640], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi], eax
jmp 0x1002ccfa
mov edi, dword [ebp - 0x62c]
mov ebx, dword [ebp - 0x628]
cmp dword [ebx + 0x108], 0
mov dword [ebp - 0x624], 4
jne 0x1002cd1f
mov ecx, ebx
call fcn.10024030
test ax, ax
jne 0x1002cd53
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x64c]
push eax
push 0
push 0x10043424
push dword [ebx + 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002cd5b
cmp dword [ebp - 0x624], eax
je 0x1002cd5b
mov eax, dword [ebp - 0x644]
jmp 0x1002cd66
mov eax, 0x19
mov dword [ebp - 0x644], eax
push 0
mov word [edi + 0xc], ax
mov edx, 0x10043460
push 0x104
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
push 0x100433a0
call fcn.100235b0
mov ecx, 0x100434c4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cd91
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push 0x100434c4
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
movzx ecx, word [edi + 0xe]
add esp, 0xc
test eax, eax
jne 0x1002cdc6
or ecx, 4
movzx ecx, cx
jmp 0x1002cdcc
and ecx, 0xfffb
push 0
push 0x104
lea eax, [ebp - 0x210]
mov word [edi + 0xe], cx
push eax
push 0x100433a0
mov edx, 0x100433e8
mov ecx, ebx
call fcn.100235b0
mov ecx, 0x1004349c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cdf7
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push 0x1004349c
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
movzx ecx, word [edi + 0xe]
add esp, 0xc
test eax, eax
jne 0x1002ce2c
or ecx, 2
movzx ecx, cx
jmp 0x1002ce32
and ecx, 0xfffd
mov ebx, dword [ebp - 0x63c]
push 0
push 0
push 0x18b
push ebx
mov word [edi + 0xe], cx
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [eax - 1]
test esi, esi
jg 0x1002ce78
push edi
push 0
push 0x19a
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bd00
mov esp, ebp
pop ebp
ret
lea edi, [esi*8]
sub edi, esi
shl edi, 2
push edi
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1002d4be
push edi
push 0
push ebx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x638]
add esp, 0xc
mov dword [ebp - 0x648], 0
mov dword [eax + 0x14], ebx
mov word [eax + 0xc], si
lea eax, [esi + 1]
mov dword [ebp - 0x64c], eax
test eax, eax
jle 0x1002ce62
lea edi, [ebx + 0xe]
xor ebx, ebx
mov dword [ebp - 0x630], edi
mov ecx, dword [ebp - 0x63c]
lea eax, [ebp - 0x210]
push 0x104
push eax
mov edx, ebx
call fcn.10019960
mov eax, dword [ebp - 0x638]
mov edx, dword [eax + 8]
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cf00
sub ecx, esi
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push edx
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1002cf45
mov eax, dword [ebp - 0x638]
push dword [eax + 0x10]
push ebx
push 0x19a
push dword [ebp - 0x63c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1002d468
lea eax, [edi - 0xe]
push eax
push ebx
push 0x19a
push dword [ebp - 0x63c]
mov dword [ebp - 0x650], eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [ebp - 0x210]
lea ecx, [esi + 2]
lea ebx, [ebx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002cf70
mov eax, dword [ebp - 0x628]
sub esi, ecx
sar esi, 1
add eax, 0x6c
mov dword [ebp - 0x624], eax
lea edi, [esi + 1]
cmp edi, 0xa
jae 0x1002cf9d
mov edi, 0xa
jmp 0x1002cfa9
cmp edi, 0x7fffffff
ja 0x1002d486
lea eax, [edi + edi]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1002d480
push esi
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
mov edi, dword [ebp - 0x630]
xor eax, eax
mov word [ebx + esi*2], ax
add esp, 0x10
mov eax, dword [ebp - 0x650]
mov ecx, 0xfffe
mov dword [eax], ebx
mov ax, word [edi]
and ax, cx
or ax, 8
mov word [edi], ax
lea eax, [ebp - 0x620]
push eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x100433a0
push 0x100434ec
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1002d238
mov eax, 0xfff7
and word [edi], ax
xor ebx, ebx
mov edi, 0xaea0
jmp 0x1002d040
xor eax, eax
push 0x104
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x418]
push eax
push edi
push dword [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x418], 0
jne 0x1002d090
mov esi, dword [0x1004338c]
lea eax, [ebp - 0x418]
push 0x104
push eax
push edi
mov ecx, esi
call dword [0x10044350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1002d153
cmp edi, 0xaea2
jne 0x1002d13d
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d0c4
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1002d13d
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
jmp 0x1002d100
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d100
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x212], 0x29
jne 0x1002d13d
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d123
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x210], 0x28
je 0x1002d153
inc edi
inc ebx
cmp edi, 0xaea4
jl 0x1002d040
mov esi, dword [ebp - 0x630]
jmp 0x1002d161
mov esi, dword [ebp - 0x630]
mov dword [esi - 6], edi
cmp ebx, 4
jl 0x1002d189
mov ebx, dword [ebp - 0x634]
lea edx, [ebp - 0x620]
push 0x100434ec
push dword [esi - 0xe]
mov ecx, ebx
call fcn.1002e1e0
mov eax, dword [ebp - 0x640]
mov edi, dword [eax]
mov dword [esi - 6], edi
jmp 0x1002d18f
mov ebx, dword [ebp - 0x634]
cmp edi, 0xaea2
jne 0x1002d291
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d1a4
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x1002d4dc
xor eax, eax
mov word [ebp + ecx - 0x210], ax
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d1e0
sub ecx, edx
lea edx, [ebp - 0x20e]
sar ecx, 1
lea edx, [edx + ecx*2]
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d200
mov eax, dword [ebp - 0x628]
sub ecx, esi
push dword [ebp - 0x624]
sar ecx, 1
push ecx
mov ecx, dword [eax + 0x7c]
call fcn.10032a00
mov edi, dword [ebp - 0x630]
mov dword [edi - 0xa], eax
test eax, eax
jne 0x1002d297
mov ecx, ebx
jmp 0x1002d4c4
mov eax, dword [ebp - 0x640]
mov eax, dword [eax]
mov dword [edi - 6], eax
cmp eax, 0xaea2
jne 0x1002d297
mov edx, dword [ebp - 0x62c]
mov edx, dword [edx + 4]
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x1002d260
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d260
mov eax, dword [ebp - 0x628]
sub ecx, esi
push dword [ebp - 0x624]
sar ecx, 1
push ecx
mov ecx, dword [eax + 0x7c]
call fcn.10032a00
mov dword [edi - 0xa], eax
test eax, eax
je 0x1002d4be
jmp 0x1002d297
mov edi, dword [ebp - 0x630]
lea eax, [ebp - 0x620]
push eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x100433a0
push 0x10043424
push dword [edi - 0xe]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1002d2e4
mov eax, 0xfff7
and word [edi], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
mov esi, dword [ebp - 0x62c]
add esp, 4
movzx eax, ax
jmp 0x1002d2ee
mov esi, dword [ebp - 0x62c]
movzx eax, word [esi + 0xc]
mov word [edi - 2], ax
lea eax, [ebp - 0x620]
push eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x100433a0
push 0x10043460
push dword [edi - 0xe]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx ecx, word [edi]
test eax, eax
je 0x1002d372
and ecx, 0xfff7
mov word [edi], cx
mov ecx, 0x100434c4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d330
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push 0x100434c4
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
movzx ecx, word [edi]
add esp, 0xc
test eax, eax
jne 0x1002d367
or ecx, 4
movzx ecx, cx
movzx eax, cx
jmp 0x1002d389
and ecx, 0xfffb
movzx eax, cx
jmp 0x1002d389
and ecx, 0xfffb
mov word [edi], cx
mov ax, word [esi + 0xe]
and ax, 4
or ax, cx
movzx eax, ax
mov word [edi], ax
lea eax, [ebp - 0x620]
push eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x100433a0
push 0x100433e8
push dword [edi - 0xe]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx ecx, word [edi]
test eax, eax
je 0x1002d412
and ecx, 0xfff7
mov word [edi], cx
mov ecx, 0x1004349c
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d3d0
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push 0x1004349c
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
movzx ecx, word [edi]
add esp, 0xc
test eax, eax
jne 0x1002d407
or ecx, 2
movzx ecx, cx
movzx eax, cx
jmp 0x1002d429
and ecx, 0xfffd
movzx eax, cx
jmp 0x1002d429
and ecx, 0xfffd
mov word [edi], cx
mov ax, word [esi + 0xe]
and ax, 2
or ax, cx
movzx eax, ax
mov ecx, dword [ebp - 0x634]
lea edx, [edi - 0xe]
mov word [edi], ax
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x654]
call fcn.1002d4f0
test eax, eax
jne 0x1002d459
mov ecx, dword [ebp - 0x638]
lea edx, [edi + 2]
call fcn.1002c8c0
mov ebx, dword [ebp - 0x648]
add edi, 0x1c
mov dword [ebp - 0x630], edi
inc ebx
mov dword [ebp - 0x648], ebx
cmp ebx, dword [ebp - 0x64c]
jl 0x1002ced3
jmp 0x1002ce62
mov eax, dword [ebp - 0x624]
push 0
push 0
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xa410
push 0xa4d8
push eax
mov eax, dword [ebp - 0x628]
mov edx, 0x10001ba0
mov ecx, 0x41
push dword [eax + 0x7c]
call fcn.1001a230
mov esi, dword [ebp - 0x630]
mov dword [esi - 0xe], 0
mov ecx, dword [ebp - 0x634]
call fcn.10032430
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bd00
mov esp, ebp
pop ebp
ret
call fcn.1003be48
int3