Function at 0x421720
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43dba2
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x469644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 8
cmp dword [ebx + 0x14], eax
jb 0x42175b
mov ecx, dword [ebx]
jmp 0x42175d
mov ecx, ebx
mov edx, dword [0x46f640]
cmp dword [0x46f654], eax
jae 0x421770
mov edx, 0x46f640
cmp dword [0x46f638], eax
mov eax, dword [0x46f624]
jae 0x421782
mov eax, 0x46f624
push ecx
push 2
lea ecx, [ebp - 0x188]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x421a14
xor edx, edx
lea eax, [ebp - 0x188]
mov word [ebp - 0x184], dx
mov dword [ebp - 0x170], 7
mov dword [ebp - 0x174], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4217c4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x188]
lea esi, [ebp - 0x184]
call fcn.00404210
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x174]
push 0x45d9f8
mov edi, 1
mov ecx, esi
call fcn.00404da0
test eax, eax
sete al
cmp dword [ebx + 0x14], 8
mov byte [ebx + 0x44], al
jb 0x421815
mov ecx, dword [ebx]
jmp 0x421817
mov ecx, ebx
mov edx, dword [0x46f65c]
mov eax, 8
cmp dword [0x46f670], eax
jae 0x42182f
mov edx, 0x46f65c
cmp dword [0x46f638], eax
mov eax, dword [0x46f624]
jae 0x421841
mov eax, 0x46f624
push ecx
push 0x40
lea ecx, [ebp - 0xb0]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jle 0x4218d1
xor edx, edx
lea eax, [ebp - 0xb0]
mov word [ebp - 0x14c], dx
mov dword [ebp - 0x138], 7
mov dword [ebp - 0x13c], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421880
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xb0]
lea esi, [ebp - 0x14c]
call fcn.00404210
lea esi, [ebx + 0x48]
lea edi, [ebp - 0x14c]
mov byte [ebp - 4], 1
call fcn.00404be0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x138], 8
jb 0x4218e0
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00426e9f
add esp, 4
jmp 0x4218e0
push 0
lea esi, [ebx + 0x48]
mov eax, 0x45d4fc
call fcn.00404210
mov eax, 8
cmp dword [ebx + 0x14], eax
jb 0x4218ee
mov ecx, dword [ebx]
jmp 0x4218f0
mov ecx, ebx
mov edx, dword [0x46f678]
cmp dword [0x46f68c], eax
jae 0x421903
mov edx, 0x46f678
cmp dword [0x46f638], eax
mov eax, dword [0x46f624]
jae 0x421915
mov eax, 0x46f624
push ecx
push 0x40
lea ecx, [ebp - 0x130]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jle 0x4219a4
xor edx, edx
lea eax, [ebp - 0x130]
mov word [ebp - 0x14c], dx
mov dword [ebp - 0x138], 7
mov dword [ebp - 0x13c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421953
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x130]
lea esi, [ebp - 0x14c]
call fcn.00404210
lea esi, [ebx + 0x64]
lea edi, [ebp - 0x14c]
mov byte [ebp - 4], 2
call fcn.00404be0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x138], 8
jb 0x4219b3
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00426e9f
add esp, 4
jmp 0x4219b3
push 0
lea esi, [ebx + 0x64]
mov eax, 0x45d4fc
call fcn.00404210
mov esi, 8
cmp dword [ebx + 0x14], esi
jb 0x4219c1
mov ecx, dword [ebx]
jmp 0x4219c3
mov ecx, ebx
mov edx, dword [0x46f694]
cmp dword [0x46f6a8], esi
jae 0x4219d6
mov edx, 0x46f694
mov eax, dword [0x46f624]
cmp dword [0x46f638], esi
jae 0x4219e8
mov eax, 0x46f624
push ecx
push esi
lea ecx, [ebp - 0x20]
push ecx
xor edi, edi
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, edi
jne 0x421a1b
cmp dword [ebp - 0x170], esi
jb 0x421a14
mov edx, dword [ebp - 0x184]
push edx
call fcn.00426e9f
add esp, 4
xor al, al
jmp 0x421c4e
xor eax, eax
mov word [ebp - 0x168], ax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x154], 7
mov dword [ebp - 0x158], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x421a40
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20]
lea esi, [ebp - 0x168]
call fcn.00404210
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x190], esp
mov byte [ebp - 4], 3
push edi
mov eax, esi
xor edx, edx
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00403a30
call fcn.00406540
add esp, 0x1c
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x80], eax
jb 0x421aa0
mov ecx, dword [ebx]
jmp 0x421aa2
mov ecx, ebx
mov edx, dword [0x46f6b0]
mov eax, 8
cmp dword [0x46f6c4], eax
jae 0x421aba
mov edx, 0x46f6b0
cmp dword [0x46f638], eax
mov eax, dword [0x46f624]
jae 0x421acc
mov eax, 0x46f624
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
push 8
lea ecx, [ebp - 0x30]
push ecx
push edi
push edx
push eax
call esi
cmp eax, edi
jle 0x421b4a
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x14c]
call fcn.00402770
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x190], esp
mov byte [ebp - 4], 4
push edi
lea eax, [ebp - 0x14c]
xor edx, edx
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00403a30
call fcn.00406540
add esp, 0x1c
mov byte [ebp - 4], 3
cmp dword [ebp - 0x138], 8
mov dword [ebx + 0x84], eax
jb 0x421b54
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00426e9f
add esp, 4
jmp 0x421b54
mov dword [ebx + 0x84], 0x1e
mov eax, 8
cmp dword [ebx + 0x14], eax
jb 0x421b62
mov ecx, dword [ebx]
jmp 0x421b64
mov ecx, ebx
mov edx, dword [0x46f6cc]
cmp dword [0x46f6e0], eax
jae 0x421b77
mov edx, 0x46f6cc
cmp dword [0x46f638], eax
mov eax, dword [0x46f624]
jae 0x421b89
mov eax, 0x46f624
push ecx
push 2
lea ecx, [ebp - 0x18c]
push ecx
push edi
push edx
push eax
call esi
cmp eax, edi
jle 0x421bf5
lea eax, [ebp - 0x18c]
lea ecx, [ebp - 0x14c]
call fcn.00402770
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x13c]
push 0x45d9f8
mov edi, 1
lea ecx, [ebp - 0x14c]
call fcn.00404da0
test eax, eax
sete dl
mov esi, 8
mov byte [ebx + 0x88], dl
cmp dword [ebp - 0x138], esi
jb 0x421c01
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00426e9f
add esp, 4
jmp 0x421c01
mov byte [ebx + 0x88], 0
mov esi, 8
cmp dword [ebp - 0x154], esi
jb 0x421c18
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.00426e9f
add esp, 4
xor edx, edx
mov dword [ebp - 0x154], 7
mov dword [ebp - 0x158], 0
mov word [ebp - 0x168], dx
cmp dword [ebp - 0x170], esi
jb 0x421c4c
mov eax, dword [ebp - 0x184]
push eax
call fcn.00426e9f
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042575d
mov esp, ebp
pop ebp
ret