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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41033b
push eax
mov eax, 0x1024
mov dword fs:[0], esp
call fcn.00409560
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
je 0x404a8c
mov eax, dword [esp + 0x1048]
push eax
call fcn.00404780
mov esi, eax
cmp esi, edi
mov dword [esp + 0x18], esi
jne 0x404918
mov ebp, dword [esp + 0x1044]
mov cl, byte [esp + 0x13]
push edi
mov byte [ebp], cl
mov ecx, ebp
call fcn.00401ce0
mov esi, dword [esp + 0x1050]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402070
test al, al
je 0x404911
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ebx + eax], 0
mov eax, ebp
jmp 0x404af4
mov cl, byte [esp + 0x13]
push edi
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
call fcn.00401ce0
lea edx, [esp + 0x14]
lea eax, [esp + 0x30]
push edx
push edi
push eax
mov dword [esp + 0x1048], edi
push edi
mov edi, dword [esp + 0x105c]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x4049dd
mov ecx, dword [esp + 0x14]
inc ecx
push ecx
call fcn.004094a8
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4049dd
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ebp
push ecx
shr edx, 1
push ebx
push edi
push esi
mov byte [edx + ebp], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x4049d4
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
lea ecx, [esp + 0x20]
push edi
mov dword [esp + 0x34], edi
call fcn.00402070
test al, al
je 0x4049d4
mov ecx, edi
mov edi, dword [esp + 0x20]
mov edx, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov byte [ecx + eax], bl
push ebp
call fcn.00409414
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ebx, eax
jne 0x404a30
mov edi, dword [esp + 0x1044]
mov dl, byte [esp + 0x1c]
push eax
mov ecx, edi
mov byte [edi], dl
call fcn.00401ce0
mov eax, dword [0x4111ac]
lea ecx, [esp + 0x1c]
push eax
push 0
push ecx
mov ecx, edi
call fcn.00401990
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x1040], 0xffffffff
call fcn.00401ce0
mov eax, edi
jmp 0x404af4
mov ebx, dword [esp + 0x1044]
mov dl, byte [esp + 0x13]
or ecx, 0xffffffff
mov byte [ebx], dl
mov edx, dword [esp + 0x1050]
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, ebx
call fcn.00404450
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x404a88
mov al, byte [ecx - 1]
test al, al
je 0x404a7e
cmp al, 0xff
je 0x404a7e
dec al
mov byte [ecx - 1], al
mov eax, ebx
jmp 0x404af4
dec ecx
push ecx
call fcn.00405716
add esp, 4
mov eax, ebx
jmp 0x404af4
mov eax, dword [esp + 0x1050]
cmp eax, edi
jne 0x404a9c
mov eax, 0x417418
mov ecx, dword [ecx + 8]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x104c]
push 0x1000
push edx
push eax
mov eax, dword [esp + 0x105c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x1044]
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x13]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
lea edi, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x34]
push ecx
push eax
mov ecx, esi
mov byte [esi], dl
call fcn.00404450
mov eax, esi
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1030
ret 0x10