Function at 0x4158b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xe28
lea eax, [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xe34]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push ebx
mov ebp, ecx
mov ecx, dword [esp + 0xe40]
push 0x104
push eax
push 0x45ed50
push str.TYPE
push ecx
call esi
lea edx, [esp + 0x1c]
mov ecx, ebp
push edx
call fcn.00415830
mov edi, dword [esp + 0xe44]
mov ecx, dword [esp + 0xe3c]
push ebx
push 0x104
mov dword [edi], eax
lea eax, [esp + 0x24]
push eax
push 0x45ed50
push 0x45a2e0
push ecx
call esi
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0
push 0
push 0xc
push edx
lea eax, [esp + 0x2c]
push 0xc
push eax
push 0x200
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0xe3c]
push ebx
lea edx, [esp + 0x20]
push 0x104
push edx
push 0x45ed50
push str.INFO
push eax
call esi
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x430]
push ecx
push edx
call fcn.00421da6
add esp, 8
lea ecx, [esp + 0x638]
lea eax, [ebp + 0x1c]
lea edx, [esp + 0x430]
push ebx
push 0x400
push ecx
push 0x45ed50
push eax
push edx
call esi
mov eax, dword [edi + 0x18]
mov edx, dword [ebp + 0x18]
push 0
push 0
push 0x400
push eax
lea ecx, [esp + 0x648]
push 0x800
push ecx
push 0x200
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0xe3c]
push ebx
lea eax, [esp + 0x20]
push 0x104
push eax
push 0x45ed50
push str.BTNEXT
push ecx
call esi
lea edx, [esp + 0x1c]
lea eax, [esp + 0x430]
push edx
push eax
call fcn.00421da6
add esp, 8
lea ecx, [esp + 0x638]
lea eax, [ebp + 0x1c]
lea edx, [esp + 0x430]
push ebx
push 0x104
push ecx
push 0x45ed50
push eax
push edx
call esi
mov eax, dword [edi + 0x10]
mov edx, dword [ebp + 0x18]
push 0
push 0
push 0x104
push eax
lea ecx, [esp + 0x648]
push 0x104
push ecx
push 0x200
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0xe3c]
push ebx
lea eax, [esp + 0x20]
push 0x104
push eax
push 0x45ed50
push str.BTPREV
push ecx
call esi
lea edx, [esp + 0x1c]
lea eax, [esp + 0x430]
push edx
push eax
call fcn.00421da6
add esp, 8
lea ecx, [esp + 0x638]
lea eax, [ebp + 0x1c]
lea edx, [esp + 0x430]
push ebx
push 0x104
push ecx
push 0x45ed50
push eax
push edx
call esi
mov eax, dword [edi + 0x14]
mov edx, dword [ebp + 0x18]
push 0
push 0
push 0x104
push eax
lea ecx, [esp + 0x648]
push 0x104
push ecx
push 0x200
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [edi + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x415aee
lea edi, [ebp + 0x328]
or ecx, 0xffffffff
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]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esp + 0xe44]
xor eax, eax
mov edx, dword [ecx + 0x14]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x415b2d
lea edi, [ebp + 0x42c]
or ecx, 0xffffffff
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]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esp + 0xe44]
mov eax, dword [ecx]
cmp eax, 4
ja case.0x415b3f.3
jmp dword [eax*4 + 0x416048]
mov eax, dword [esp + 0xe3c]
push ebx
lea edx, [esp + 0x20]
push 0x104
push edx
push 0x45ed50
push str.NEXT
push eax
call esi
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x638]
push ecx
push edx
call fcn.00421da6
add esp, 8
lea eax, [esp + 0x638]
mov ecx, ebp
push eax
call fcn.00416060
mov ecx, eax
cmp ecx, 0xffffffff
mov dword [esp + 0x10], ecx
jne 0x415bf8
push 0
mov ecx, ebp
call fcn.004150c0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x228]
mov edi, eax
push ecx
push edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x22c], edi
call fcn.00421da6
mov eax, dword [esp + 0xe4c]
add esp, 8
lea ecx, [esp + 0x224]
mov dword [eax + 4], edi
mov edx, dword [ebp + 0xc]
lea edi, [ebp + 4]
push ecx
push 1
push edx
mov ecx, edi
call fcn.004168c0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x638]
push eax
push ebx
push ecx
mov ecx, ebp
call fcn.004158b0
jmp 0x415c41
mov eax, dword [ebp + 8]
lea edi, [ebp + 4]
test eax, eax
je 0x415c1c
mov edx, dword [edi + 8]
sub edx, eax
mov eax, 0x3e88cb3d
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, ecx
ja 0x415c27
mov ecx, edi
call fcn.00416410
mov ecx, dword [esp + 0x10]
mov edx, ecx
shl edx, 6
add edx, ecx
lea eax, [ecx + edx*2]
mov ecx, dword [edi + 4]
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0xe44]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xe3c]
push ebx
lea ecx, [esp + 0x20]
push 0x104
push ecx
push 0x45ed50
push str.PREV
push edx
call esi
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x638]
push eax
push ecx
call fcn.00421da6
add esp, 8
lea edx, [esp + 0x638]
mov ecx, ebp
push edx
call fcn.00416060
mov esi, eax
cmp esi, 0xffffffff
jne 0x415cef
push 0
mov ecx, ebp
call fcn.004150c0
mov esi, eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x228]
push eax
push ecx
mov dword [esp + 0x22c], esi
call fcn.00421da6
mov edx, dword [esp + 0xe4c]
add esp, 8
lea eax, [esp + 0x224]
mov dword [edx + 8], esi
mov ecx, dword [edi + 8]
push eax
push 1
push ecx
mov ecx, edi
call fcn.004168c0
push esi
lea edx, [esp + 0x63c]
push ebx
push edx
mov ecx, ebp
call fcn.004158b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe28
ret 0xc
mov eax, dword [edi + 4]
test eax, eax
je 0x415d10
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, esi
ja 0x415d17
mov ecx, edi
call fcn.00416410
mov eax, dword [edi + 4]
mov ecx, esi
shl ecx, 6
add ecx, esi
pop edi
lea edx, [esi + ecx*2]
pop esi
pop ebp
pop ebx
mov ecx, dword [eax + edx*4]
mov edx, dword [esp + 0xe34]
mov dword [edx + 8], ecx
add esp, 0xe28
ret 0xc
mov ecx, dword [esp + 0xe3c]
push ebx
lea eax, [esp + 0x20]
push 0x104
push eax
push 0x45ed50
push str.NEXT
push ecx
call esi
lea edx, [esp + 0x1c]
lea eax, [esp + 0x638]
push edx
push eax
call fcn.00421da6
add esp, 8
lea ecx, [esp + 0x638]
push ecx
mov ecx, ebp
call fcn.00416060
mov esi, eax
cmp esi, 0xffffffff
jne 0x415ff5
push 0
mov ecx, ebp
call fcn.004150c0
mov esi, eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x228]
push edx
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x22c], esi
call fcn.00421da6
mov ecx, dword [esp + 0xe4c]
lea ebx, [ebp + 4]
mov eax, 0x3e88cb3d
add esp, 8
mov dword [ecx + 4], esi
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov esi, ecx
sub edx, ecx
mov dword [esp + 0x10], esi
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x415ee5
mov edi, dword [ebx + 4]
test edi, edi
je 0x415e11
mov edx, ecx
mov eax, 0x3e88cb3d
sub edx, edi
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov dword [esp + 0x10], edx
ja 0x415e19
mov dword [esp + 0x10], 1
test edi, edi
jne 0x415e21
xor edx, edx
jmp 0x415e34
sub ecx, edi
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov eax, dword [esp + 0x10]
add eax, edx
test eax, eax
mov dword [esp + 0x14], eax
jge 0x415e44
xor eax, eax
mov ecx, eax
shl ecx, 6
add ecx, eax
lea edx, [eax + ecx*2]
shl edx, 2
push edx
call fcn.00433bc5
add esp, 4
mov edi, eax
mov eax, dword [ebx + 4]
mov ecx, ebx
push edi
push esi
push eax
call fcn.00416de0
lea ecx, [esp + 0x224]
mov dword [esp + 0x10], eax
push ecx
push 1
push eax
mov ecx, ebx
call fcn.00416e20
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 8]
add edx, 0x20c
mov ecx, ebx
push edx
push eax
push esi
call fcn.00416de0
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.00416400
mov eax, dword [ebx + 4]
push eax
call fcn.00433bee
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, eax
shl ecx, 6
add ecx, eax
lea edx, [eax + ecx*2]
mov ecx, ebx
lea eax, [edi + edx*4]
mov dword [ebx + 0xc], eax
call fcn.004163d0
inc eax
mov dword [ebx + 4], edi
mov ecx, eax
shl ecx, 6
add ecx, eax
lea edx, [eax + ecx*2]
lea eax, [edi + edx*4]
mov dword [ebx + 8], eax
jmp 0x415fcc
mov edx, ecx
mov eax, 0x3e88cb3d
sub edx, esi
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x415f63
lea edx, [esi + 0x20c]
push edx
push ecx
push esi
mov ecx, ebx
call fcn.00416de0
mov edi, dword [ebx + 8]
lea eax, [esp + 0x224]
mov ecx, edi
push eax
sub ecx, esi
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub eax, edx
push eax
push edi
call fcn.00416e20
mov edx, dword [ebx + 8]
mov eax, esi
cmp esi, edx
je 0x415fc5
mov edi, eax
add eax, 0x20c
mov ecx, 0x83
lea esi, [esp + 0x224]
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x415f48
jmp 0x415fc5
push ecx
push ecx
add ecx, 0xfffffdf4
push ecx
mov ecx, ebx
call fcn.00416de0
mov edx, dword [ebx + 8]
lea eax, [edx - 0x20c]
cmp esi, eax
je 0x415fa0
sub eax, 0x20c
sub edx, 0x20c
mov ecx, 0x83
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x415f80
mov esi, ecx
lea edx, [esi + 0x20c]
mov eax, esi
cmp esi, edx
je 0x415fc5
mov edi, eax
add eax, 0x20c
mov ecx, 0x83
lea esi, [esp + 0x224]
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x415fac
add dword [ebx + 8], 0x20c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xe40]
push ecx
lea eax, [esp + 0x63c]
push edx
push eax
mov ecx, ebp
call fcn.004158b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe28
ret 0xc
mov eax, dword [ebp + 8]
add ebp, 4
test eax, eax
je 0x416019
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, esi
ja 0x416020
mov ecx, ebp
call fcn.00416410
mov ecx, dword [ebp + 4]
mov edx, esi
shl edx, 6
add edx, esi
lea eax, [esi + edx*2]
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0xe44]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe28
ret 0xc