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

Disassembly:
sub esp, 0x33c
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x338], eax
mov eax, dword [esp + 0x340]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x354]
xor ebx, ebx
push 0x103
mov dword [esp + 0x14], eax
lea eax, [esp + 0x3d]
push ebx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], esi
mov byte [esp + 0x44], bl
call fcn.00a7ffb0
add esp, 0xc
mov dword [esp + 0x28], ebx
cmp edi, ebx
je 0x9706e8
mov byte [edi], bl
push str.SOFTWAREMicroWorld_
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
cmp byte [esi], bl
je 0x970705
mov edi, edi
inc eax
cmp byte [eax], bl
jne 0x970700
sub eax, esi
add eax, 0x11
push 1
push eax
call fcn.00a7b9f8
mov ecx, dword [esp + 0x1c]
mov ebp, eax
add esp, 8
mov dword [esp + 0x2c], ebp
cmp ebp, ebx
jne 0x970756
mov edx, dword [esp + 0x350]
mov eax, dword [esp + 0x18]
push esi
push edx
mov edx, dword [esp + 0x18]
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.00a78f21
add esp, 0x33c
ret
cmp ecx, ebx
je 0x9708bb
mov eax, ecx
cmp byte [ecx], bl
je 0x970769
inc eax
cmp byte [eax], bl
jne 0x970764
sub eax, ecx
je 0x9708bb
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, ebp
call fcn.0097a4a0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
lea eax, [esp + 0x3c]
push eax
call esi
lea ecx, [esp + 0x38]
call fcn.00960910
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x3c]
push edx
call esi
lea eax, [esp + 0x28]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x44]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
je 0x97080f
push ebp
call fcn.00a78fec
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x354]
mov ecx, dword [esp + 0x1c]
add esp, 4
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.00a78f21
add esp, 0x33c
ret
mov ecx, dword [esp + 0x350]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x2c]
push edi
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x20]
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebp
mov esi, eax
call fcn.00a78fec
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], ebx
cmp esi, ebx
je 0x9708a1
mov ebx, dword [esp + 0x14]
mov eax, 0xaec13c
mov ecx, ebx
xor esi, esi
call fcn.0094c330
test eax, eax
je 0x970890
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x350]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push edi
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
jmp 0x970b3b
mov edx, dword [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x970b3b
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.00a78f21
add esp, 0x33c
ret
push 0x103
lea eax, [esp + 0x245]
push ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.00a7ffb0
push 0x103
lea ecx, [esp + 0x14d]
push ebx
push ecx
call fcn.00a7ffb0
add esp, 0x18
mov byte [esp + 0x13c], bl
mov byte [esp + 0x240], bl
cmp edi, ebx
je 0x9708fc
mov byte [edi], bl
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp], bl
je 0x97091d
mov eax, ebp
jmp 0x970910
cmp byte [eax], 0x5c
jne 0x970918
mov byte [eax], 0x23
inc eax
cmp byte [eax], bl
jne 0x970910
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
lea edx, [esp + 0x3c]
push edx
call esi
lea ecx, [esp + 0x38]
call fcn.00960910
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
call esi
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x44]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
je 0x9709ac
push ebp
call fcn.00a78fec
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x354]
mov eax, dword [esp + 0x1c]
add esp, 4
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.00a78f21
add esp, 0x33c
ret
push 0xaa1543
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 0x104
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x140]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x254]
push ecx
push ebx
push edx
xor esi, esi
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x970b1b
mov eax, dword [esp + 0x20]
mov byte [esp + eax + 0x240], bl
lea eax, [eax + esi + 1]
cmp eax, dword [esp + 0x350]
jae 0x970b55
lea ecx, [esp + 0x240]
push ecx
lea edx, [edi + esi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
add esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov byte [esp + eax + 0x13c], bl
lea eax, [eax + esi + 1]
cmp eax, dword [esp + 0x350]
jae 0x970b55
mov ecx, 0xaa18d0
lea eax, [esp + 0x13c]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x970a80
cmp dl, bl
je 0x970a7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x970a80
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x970a60
xor eax, eax
jmp 0x970a85
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x970ab9
push 0xaec138
cmp esi, ebx
jbe 0x970a99
lea ecx, [edi + esi - 1]
push ecx
jmp 0x970a9d
lea edx, [edi + esi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x13c]
push eax
lea ecx, [edi + esi]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
add esi, dword [esp + 0x24]
inc esi
cmp dword [esp + 0x350], esi
jb 0x970b55
push 0xaa1543
lea edx, [edi + esi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 0x104
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x140]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x254]
push ecx
inc ebp
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x970a00
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x970b2e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x2c]
push eax
call fcn.00a78fec
add esp, 4
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.00a78f21
add esp, 0x33c
ret
mov eax, dword [esp + 0x2c]
push eax
call fcn.00a78fec
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
je 0x970b75
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x350]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x344]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x33c
ret