Function at 0x42d520
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587167
mov eax, dword fs:[0]
push eax
mov eax, 0x20a0
call fcn.0054da90
mov eax, dword [0x602280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x209c], eax
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push eax
call fcn.0054dac0
add esp, 0xc
lea eax, [ebp - 0x2010]
push esi
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea esi, [ebp - 0x2010]
mov ebx, esi
mov dword [ebp - 0x2094], esi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x42d5a4
sub ebx, ecx
sar ebx, 1
je 0x42d92d
lea esp, [esp]
xor eax, eax
mov dword [ebp - 0x2074], 7
mov dword [ebp - 0x2078], 0
mov word [ebp - 0x2088], ax
cmp word [esi], ax
jne 0x42d5e6
xor ecx, ecx
jmp 0x42d5ff
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x42d5f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d5f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2088]
call fcn.00423770
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2014], 7
mov dword [ebp - 0x2018], 0
mov word [ebp - 0x2028], ax
mov dword [ebp - 0x202c], 7
mov dword [ebp - 0x2030], eax
mov word [ebp - 0x2040], ax
push 1
push 0x592674
lea ecx, [ebp - 0x2058]
mov byte [ebp - 4], 2
mov dword [ebp - 0x2044], 7
mov dword [ebp - 0x2048], eax
mov word [ebp - 0x2058], ax
call fcn.00423770
lea eax, [ebp - 0x2040]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2028]
push eax
lea eax, [ebp - 0x2058]
push eax
lea eax, [ebp - 0x2088]
push eax
call fcn.0042eb10
add esp, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2044], 8
jb 0x42d6b7
push dword [ebp - 0x2058]
call fcn.0054b7e0
add esp, 4
mov edi, dword [ebp - 0x209c]
lea eax, [ebp - 0x2028]
push eax
lea eax, [ebp - 0x20a4]
mov ecx, edi
push eax
call fcn.0042e8d0
push dword [ebp - 0x2098]
lea eax, [ebp - 0x208c]
mov dword [ebp - 0x208c], 0
push eax
push dword [ebp - 0x20a0]
push dword [ebp - 0x20a4]
call fcn.0042d0c0
add esp, 0x10
cmp dword [ebp - 0x208c], 0
jne 0x42d79c
lea eax, [ebp - 0x2040]
push eax
lea eax, [ebp - 0x2028]
push eax
lea eax, [ebp - 0x2070]
push eax
call fcn.0042d130
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0042d080
push eax
add eax, 0x10
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x20ac]
push eax
call fcn.0042aa40
cmp dword [ebp - 0x2044], 8
jb 0x42d75f
push dword [ebp - 0x2058]
call fcn.0054b7e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2044], 7
cmp dword [ebp - 0x205c], 8
mov dword [ebp - 0x2048], 0
mov word [ebp - 0x2058], ax
jb 0x42d879
push dword [ebp - 0x2070]
call fcn.0054b7e0
add esp, 4
jmp 0x42d879
mov esi, dword [edi]
mov edi, dword [esi + 4]
cmp byte [edi + 0xd], 0
jne 0x42d7eb
jmp 0x42d7b0
cmp dword [ebp - 0x2014], 8
lea eax, [ebp - 0x2028]
push dword [ebp - 0x2018]
cmovae eax, dword [ebp - 0x2028]
lea ecx, [edi + 0x10]
push eax
push dword [ecx + 0x10]
push 0
call fcn.0042cb10
test eax, eax
jns 0x42d7e1
mov edi, dword [edi + 8]
jmp 0x42d7e5
mov esi, edi
mov edi, dword [edi]
cmp byte [edi + 0xd], 0
je 0x42d7b0
mov edi, dword [ebp - 0x209c]
cmp esi, dword [edi]
je 0x42d81c
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x42d803
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x2018]
lea ecx, [ebp - 0x2028]
push 0
call fcn.0042cb10
test eax, eax
jns 0x42d85c
lea eax, [ebp - 0x2028]
mov ecx, edi
mov dword [ebp - 0x208c], eax
lea eax, [ebp - 0x208d]
push eax
lea eax, [ebp - 0x208c]
push eax
push 0x607017
call fcn.0042a440
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x2098]
push eax
call fcn.0042a850
mov esi, dword [ebp - 0x2098]
lea ecx, [esi + 0x28]
lea eax, [ebp - 0x2040]
cmp ecx, eax
je 0x42d873
push 0xffffffffffffffff
push 0
push eax
call fcn.00423bc0
mov esi, dword [ebp - 0x2094]
lea esi, [esi + ebx*2]
add esi, 2
mov ebx, esi
mov dword [ebp - 0x2094], esi
lea ecx, [ebx + 2]
lea ebx, [ebx]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x42d890
sub ebx, ecx
sar ebx, 1
cmp dword [ebp - 0x202c], 8
jb 0x42d8b6
push dword [ebp - 0x2040]
call fcn.0054b7e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x202c], 7
cmp dword [ebp - 0x2014], 8
mov dword [ebp - 0x2030], 0
mov word [ebp - 0x2040], ax
jb 0x42d8ea
push dword [ebp - 0x2028]
call fcn.0054b7e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2014], 7
cmp dword [ebp - 0x2074], 8
mov dword [ebp - 0x2018], 0
mov word [ebp - 0x2028], ax
mov dword [ebp - 4], 0xffffffff
jb 0x42d925
push dword [ebp - 0x2088]
call fcn.0054b7e0
add esp, 4
test ebx, ebx
jne 0x42d5c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bf74
mov esp, ebp
pop ebp
ret