Function at 0x412180
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5380bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa44
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0xa5c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa64]
lea ecx, [esp + 0x234]
push eax
xor ebp, ebp
push 0x410
push ecx
push ebp
push ebp
push ebp
mov byte [esp + 0xa74], 3
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x234]
lea ecx, [esp + 0x10]
push edx
call fcn.00512a6d
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 8]
test eax, eax
jle 0x412418
jmp 0x412211
mov ebp, dword [esp + 0x1c]
lea edi, [esp + ebp + 0x234]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00512a6d
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x4123fd
lea ecx, [esp + 0x10]
call fcn.0050e8af
lea eax, [esp + 0x24]
push 4
push eax
lea ecx, [esp + 0x18]
call fcn.0050e2a7
mov ecx, dword [eax]
push str.HKEY
push ecx
call fcn.004f9670
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
setne bl
call fcn.005128e4
test bl, bl
je 0x4122a8
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 8]
lea eax, [edx - 8]
lea ecx, [ecx + ebp + 1]
mov dword [esp + 0x1c], ecx
jmp 0x41240f
mov edx, dword [esp + 0xa64]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x648]
xor ebp, ebp
push 0x410
push eax
push ebp
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x644]
lea ecx, [esp + 0x18]
push edx
call fcn.00512a6d
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x4123f9
lea edi, [esp + ebp + 0x644]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x130]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00512a6d
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
je 0x4123e6
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
call fcn.00512a1d
push 0x22
lea ecx, [esp + 0x18]
call fcn.0050e86c
push 0x22
lea ecx, [esp + 0x18]
call fcn.0050e776
mov eax, dword [esp + 0x14]
mov esi, 0x5984cc
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41238c
test cl, cl
je 0x412388
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41238c
add eax, 2
add esi, 2
test cl, cl
jne 0x412364
xor eax, eax
jmp 0x412391
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4123a5
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.00512a1d
jmp 0x4123c5
push 0x598474
push 0
lea ecx, [esp + 0x1c]
call fcn.0050df1d
mov ecx, dword [esp + 0x10]
push ecx
push 0
lea ecx, [esp + 0x1c]
call fcn.0050df1d
push 0
push 0
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00512659
mov ecx, dword [esp + 0xa74]
call fcn.00407760
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 8]
test eax, eax
lea ebp, [eax + ebp + 1]
jg 0x4122ec
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 8]
mov ecx, dword [ecx - 8]
lea edx, [ecx + ebp + 1]
mov dword [esp + 0x1c], edx
cmp dword [eax], 0
jg 0x41220d
lea ecx, [esp + 0x14]
mov byte [esp + 0xa5c], 2
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0xa5c], 1
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0xa5c], 0
call fcn.005128e4
lea ecx, [esp + 0x18]
mov dword [esp + 0xa5c], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0xa54]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xa50
ret 8