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

Disassembly:
sub esp, 0x10
mov eax, dword [0x42a44c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov byte [eax], 0
xor ebp, ebp
mov eax, dword [edi + 0x20]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x4136fe
push str.parent
push eax
call fcn.004199e0
add esp, 8
test eax, eax
je 0x4136f6
mov ecx, dword [edi + 0x20]
mov edx, dword [0x42a8f8]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4136ea
jmp 0x4136fe
mov dword [esp + 0x10], 1
cmp dword [edi + 0x2c], ebp
je 0x413806
mov eax, dword [edi + 0x28]
push ebx
mov ebx, dword [0x425048]
cmp eax, 0x14
mov dword [esp + 0x18], ebp
jae 0x413721
mov ebx, dword [eax*4 + 0x425044]
xor esi, esi
cmp eax, 4
jne 0x41373f
mov ecx, dword [edi + 0x30]
push 0x5c
push ecx
call fcn.00419c40
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x41373f
mov byte [esi], 0
mov eax, dword [edi + 0x2c]
lea edx, [esp + 0x24]
push edx
push 0x20019
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push ebx
call ebp
test eax, eax
jne 0x4137a1
mov edx, dword [0x42a44c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi + 0x30]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, 1
je 0x413792
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4137fe
cmp dword [edi + 0x28], 4
jne 0x4137fe
mov ebx, dword [edi + 0x30]
test esi, esi
je 0x4137b1
lea ebx, [esi + 1]
mov edx, dword [edi + 0x2c]
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push 0
push edx
push 0x80000001
call ebp
test eax, eax
jne 0x4137fe
mov ecx, dword [0x42a44c]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push ebx
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop ebx
je 0x413806
mov byte [esi], 0x5c
mov edx, dword [0x42a44c]
cmp byte [edx], 0
jne 0x413875
mov eax, dword [edi + 0x38]
test eax, eax
je 0x41386c
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x41386c
mov eax, dword [edi + 0x40]
test eax, eax
je 0x41386c
mov ecx, dword [0x42a8f8]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x41382c
mov edx, dword [edi + 0x38]
mov eax, dword [0x42a8f8]
mov ecx, dword [0x42a44c]
push edx
mov edx, dword [edi + 0x40]
push 0x104
push eax
mov eax, dword [edi + 0x3c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x413866
mov ecx, dword [0x42a44c]
mov byte [ecx], al
mov edx, dword [0x42a44c]
cmp byte [edx], 0
je 0x413929
mov esi, edx
cmp byte [esi], 0x22
jne 0x4138a2
mov al, byte [esi + 1]
inc esi
cmp al, 0x22
mov ecx, esi
je 0x413897
test al, al
je 0x413897
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x22
jne 0x413886
mov byte [ecx], 0
jmp 0x4138a2
cmp byte [ecx], 0x22
jne 0x4138a1
mov byte [ecx], 0
jmp 0x4138a2
dec esi
push esi
call fcn.00419f48
add esp, 4
test eax, eax
je 0x4138e7
push 0x5c
push esi
call fcn.00419c00
mov edi, eax
add esp, 8
test edi, edi
je 0x4138e2
lea edx, [edi + 1]
push 0x2e
push edx
call fcn.00419c40
add esp, 8
test eax, eax
je 0x4138e2
push esi
mov byte [edi], 0
call fcn.00419f48
add esp, 4
test eax, eax
je 0x4138e7
mov byte [esi], 0
jmp 0x413929
cmp byte [esi], 0
je 0x413929
mov eax, dword [esp + 0x10]
test eax, eax
je 0x413906
push 0x5c
push esi
call fcn.00419c00
add esp, 8
test eax, eax
je 0x413906
mov byte [eax], 0
mov ecx, dword [0x42a8f8]
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
test al, al
jne 0x41390c
mov eax, dword [0x42a8f8]
cmp byte [eax], 0
je 0x413929
push eax
call fcn.00413950
add esp, 4
mov eax, dword [0x42a8f8]
push 0x104
push eax
push eax
call fcn.0040cc50
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x10
ret