Function at 0x412500
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524b1b
mov eax, dword fs:[0]
push eax
mov eax, 0x10fc
call fcn.004bab30
mov eax, dword [0x590cc0]
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 + 8]
mov edi, dword [ebp + 0xc]
lea esi, [ecx + 0x38]
mov dword [ebp - 0x10f4], ecx
xor ebx, ebx
mov dword [ebp - 0x1104], ebx
push edi
mov ecx, esi
mov dword [ebp - 0x10f8], eax
mov dword [ebp - 0x1104], esi
call fcn.004085b0
mov dword [ebp - 0x1100], eax
cmp eax, dword [esi + 4]
je 0x412590
mov ecx, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x412576
mov eax, dword [eax]
push ecx
mov ecx, dword [edi + 0x10]
push eax
push ecx
push ebx
mov ecx, edi
call fcn.004010d0
test eax, eax
js 0x412590
lea eax, [ebp - 0x1100]
jmp 0x41259f
mov edx, dword [esi + 4]
mov dword [ebp - 0x10fc], edx
lea eax, [ebp - 0x10fc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10f4]
cmp eax, dword [ecx + 0x3c]
je 0x4125d4
mov esi, dword [ebp - 0x10f8]
push 0xffffffffffffffff
push ebx
add eax, 0x28
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00402240
jmp 0x412c7b
push 1
push ebx
push 0x53eeb8
mov ecx, edi
call fcn.0040adb0
mov esi, eax
xor eax, eax
mov dword [ebp - 0x10a4], 7
mov dword [ebp - 0x10a8], ebx
mov word [ebp - 0x10b8], ax
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x412b74
push esi
push ebx
lea ecx, [ebp - 0x10d4]
push ecx
mov ecx, edi
call fcn.00408740
push 0xffffffffffffffff
inc esi
push esi
lea edx, [ebp - 0x10f0]
push edx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00408740
push 0xffe
lea ecx, [ebp - 0x100e]
xor eax, eax
push ebx
push ecx
mov byte [ebp - 4], 2
mov word [ebp - 0x1010], ax
call fcn.004ba010
lea edx, [ebp - 0x10f0]
push edx
lea eax, [ebp - 0x1080]
push eax
call fcn.0040e7c0
push eax
lea ecx, [ebp - 0x102c]
push ecx
mov byte [ebp - 4], 3
call fcn.0040df00
lea edx, [ebp - 0x1064]
push edx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040e6e0
mov esi, dword [ebp - 0x10f4]
mov ecx, 8
add esp, 0x20
cmp dword [esi + 0x30], ecx
jb 0x41269d
mov edx, dword [esi + 0x1c]
jmp 0x4126a0
lea edx, [esi + 0x1c]
cmp dword [eax + 0x14], ecx
jb 0x4126a7
mov eax, dword [eax]
cmp dword [ebp - 0x10c0], ecx
mov ecx, dword [ebp - 0x10d4]
jae 0x4126bb
lea ecx, [ebp - 0x10d4]
push edx
push 0x800
lea edx, [ebp - 0x1010]
push edx
push 0x53a154
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp dword [ebp - 0x1050], 8
jb 0x4126ed
mov eax, dword [ebp - 0x1064]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x1018], 0x10
mov dword [ebp - 0x1050], 7
mov dword [ebp - 0x1054], ebx
mov word [ebp - 0x1064], cx
jb 0x41271e
mov edx, dword [ebp - 0x102c]
push edx
call fcn.004b9008
add esp, 4
cmp dword [ebp - 0x106c], 0x10
mov dword [ebp - 0x1018], 0xf
mov dword [ebp - 0x101c], ebx
mov byte [ebp - 0x102c], bl
mov byte [ebp - 4], 2
jb 0x412750
mov eax, dword [ebp - 0x1080]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1050], 7
mov dword [ebp - 0x1054], ebx
mov word [ebp - 0x1064], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x412772
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x1064]
call fcn.00402460
lea eax, [ebp - 0x1064]
push eax
lea ecx, [ebp - 0x1080]
push ecx
mov byte [ebp - 4], 5
call fcn.0040e7c0
push eax
lea edx, [ebp - 0x1048]
push edx
mov byte [ebp - 4], 6
call fcn.0040e090
lea ecx, [ebp - 0x102c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040e6e0
add esp, 0x14
push eax
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], 8
call fcn.00402630
cmp dword [ebp - 0x1018], 8
jb 0x4127f9
mov edx, dword [ebp - 0x102c]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], ebx
mov word [ebp - 0x102c], ax
jb 0x41282a
mov ecx, dword [ebp - 0x1048]
push ecx
call fcn.004b9008
add esp, 4
cmp dword [ebp - 0x106c], 0x10
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], ebx
mov byte [ebp - 0x1048], bl
jb 0x412858
mov edx, dword [ebp - 0x1080]
push edx
call fcn.004b9008
add esp, 4
cmp dword [ebp - 0x1050], 8
mov dword [ebp - 0x106c], 0xf
mov dword [ebp - 0x1070], ebx
mov byte [ebp - 0x1080], bl
mov byte [ebp - 4], 2
jb 0x41288a
mov eax, dword [ebp - 0x1064]
push eax
call fcn.004b9008
add esp, 4
cmp dword [ebp - 0x10a8], ebx
jne 0x412b20
mov eax, 8
cmp dword [esi + 0x30], eax
jb 0x4128a5
mov ecx, dword [esi + 0x1c]
jmp 0x4128a8
lea ecx, [esi + 0x1c]
mov edx, dword [ebp - 0x10f0]
cmp dword [ebp - 0x10dc], eax
jae 0x4128bc
lea edx, [ebp - 0x10f0]
cmp dword [ebp - 0x10c0], eax
mov eax, dword [ebp - 0x10d4]
jae 0x4128d0
lea eax, [ebp - 0x10d4]
push ecx
push 0x800
lea ecx, [ebp - 0x1010]
push ecx
push 0x53a154
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4128f3
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x10b8]
call fcn.00402460
cmp dword [ebp - 0x10a8], ebx
jne 0x412b20
lea eax, [ebp - 0x10f0]
push eax
lea ecx, [ebp - 0x102c]
push ecx
call fcn.0040e7c0
push eax
lea edx, [ebp - 0x1048]
push edx
mov byte [ebp - 4], 9
call fcn.0040df00
lea ecx, [ebp - 0x1080]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0040e6e0
mov edx, dword [ebp - 0x10f4]
mov esi, 8
add esp, 0x14
cmp dword [edx + 0x14], esi
jb 0x41296c
mov edx, dword [edx]
cmp dword [eax + 0x14], esi
jb 0x412973
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10d4]
cmp dword [ebp - 0x10c0], esi
jae 0x412987
lea ecx, [ebp - 0x10d4]
push edx
push 0x800
lea edx, [ebp - 0x1010]
push edx
push 0x53a154
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp dword [ebp - 0x106c], esi
jb 0x4129b8
mov eax, dword [ebp - 0x1080]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
mov esi, 0x10
mov dword [ebp - 0x106c], 7
mov dword [ebp - 0x1070], ebx
mov word [ebp - 0x1080], cx
cmp dword [ebp - 0x1034], esi
jb 0x4129ed
mov edx, dword [ebp - 0x1048]
push edx
call fcn.004b9008
add esp, 4
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], ebx
mov byte [ebp - 0x1048], bl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1018], esi
jb 0x412a1e
mov eax, dword [ebp - 0x102c]
push eax
call fcn.004b9008
add esp, 4
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x1064]
call fcn.00402580
lea edx, [ebp - 0x1064]
push edx
lea eax, [ebp - 0x102c]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040e7c0
push eax
lea ecx, [ebp - 0x1048]
push ecx
mov byte [ebp - 4], 0xc
call fcn.0040e090
lea edx, [ebp - 0x1080]
push edx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.0040e6e0
add esp, 0x14
push eax
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], 0xe
call fcn.00402630
cmp dword [ebp - 0x106c], 8
jb 0x412a95
mov eax, dword [ebp - 0x1080]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x106c], 7
mov dword [ebp - 0x1070], ebx
mov word [ebp - 0x1080], cx
cmp dword [ebp - 0x1034], esi
jb 0x412ac5
mov edx, dword [ebp - 0x1048]
push edx
call fcn.004b9008
add esp, 4
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], ebx
mov byte [ebp - 0x1048], bl
cmp dword [ebp - 0x1018], esi
jb 0x412af2
mov eax, dword [ebp - 0x102c]
push eax
call fcn.004b9008
add esp, 4
cmp dword [ebp - 0x1050], 8
mov dword [ebp - 0x1018], 0xf
mov dword [ebp - 0x101c], ebx
mov byte [ebp - 0x102c], bl
jb 0x412b20
mov ecx, dword [ebp - 0x1064]
push ecx
call fcn.004b9008
add esp, 4
cmp dword [ebp - 0x10dc], 8
jb 0x412b38
mov edx, dword [ebp - 0x10f0]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
cmp dword [ebp - 0x10c0], 8
mov dword [ebp - 0x10dc], 7
mov dword [ebp - 0x10e0], ebx
mov word [ebp - 0x10f0], ax
mov byte [ebp - 4], bl
jb 0x412b6c
mov ecx, dword [ebp - 0x10d4]
push ecx
call fcn.004b9008
add esp, 4
cmp dword [ebp - 0x10a8], ebx
jne 0x412bb9
mov edx, dword [ebp - 0x10f4]
mov ecx, dword [edx + 0x48]
cmp ecx, ebx
je 0x412bb9
push edi
lea eax, [ebp - 0x1080]
push eax
call fcn.00412000
push eax
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], 0xf
call fcn.00402630
cmp dword [ebp - 0x106c], 8
mov byte [ebp - 4], bl
jb 0x412bb9
mov ecx, dword [ebp - 0x1080]
push ecx
call fcn.004b9008
add esp, 4
lea edx, [ebp - 0x10b8]
push edx
lea eax, [ebp - 0x109c]
push edi
push eax
call fcn.00410180
add esp, 0xc
mov esi, dword [ebp - 0x1104]
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.00411880
push eax
lea ecx, [ebp - 0x1108]
push ecx
mov ecx, esi
call fcn.00408d20
mov edi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x106c], edi
jb 0x412c11
mov edx, dword [ebp - 0x1080]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
mov dword [ebp - 0x106c], 7
mov dword [ebp - 0x1070], ebx
mov word [ebp - 0x1080], ax
cmp dword [ebp - 0x1088], edi
jb 0x412c41
mov ecx, dword [ebp - 0x109c]
push ecx
call fcn.004b9008
add esp, 4
mov esi, dword [ebp - 0x10f8]
lea eax, [ebp - 0x10b8]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00402630
cmp dword [ebp - 0x10a4], edi
jb 0x412c7b
mov ecx, dword [ebp - 0x10b8]
push ecx
call fcn.004b9008
add esp, 4
mov eax, esi
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.004b9ff3
mov esp, ebp
pop ebp
ret 8