Function at 0x4108e1
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x418214
call fcn.00417cf0
sub esp, 0x954
push ebx
and byte [ebp - 0x44c], 0
push esi
push edi
push 0x40
mov dword [ebp - 0x18], ecx
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x44b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x348], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x347]
rep stosd dword es:[edi], eax
and byte [ebp - 0x140], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x13f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x960], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x95f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x758], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x757]
rep stosd dword es:[edi], eax
and byte [ebp - 0x244], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x243]
rep stosd dword es:[edi], eax
and byte [ebp - 0x654], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
and byte [ebp - 0x550], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x54f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x85c], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x85b]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov ebx, 0x103
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x44c]
push ebx
mov edi, 0x418a34
push eax
push edi
push 0xbc
call fcn.0040d75f
pop ecx
push eax
push 0x404cb4
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call esi
lea eax, [ebp - 0x44c]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jne 0x410a18
push dword [ebp + 8]
lea eax, [ebp - 0x44c]
push ebx
push eax
push edi
push 0x404dec
push 0x404cb4
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x348]
push ebx
push eax
push edi
push 0x404de0
push 0x404cb4
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x140]
push ebx
push eax
push edi
push 0x404dd8
push 0x404cb4
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x758]
push ebx
push eax
push edi
push 0x404dcc
push 0x404cb4
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x654]
push ebx
push eax
push edi
push 0x404dc4
push 0x404cb4
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x550]
push ebx
push eax
push edi
push 0x404dbc
push 0x404cb4
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x85c]
push ebx
push eax
push edi
push 0x404cbc
push 0x404cb4
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x960]
push ebx
push eax
push edi
mov edi, 0x404cb4
push 0x404db4
push edi
call esi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x404da8
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
call fcn.004176de
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea eax, [ebp - 0x140]
push 0x404d94
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
call esi
pop ecx
test eax, eax
pop ecx
je 0x410b9f
lea eax, [ebp - 0x140]
push 0x404d8c
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x410b9f
lea eax, [ebp - 0x140]
push 0x404d7c
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x410b96
lea eax, [ebp - 0x140]
push 0x404d74
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x410b96
lea eax, [ebp - 0x140]
push 0x404d64
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x410b96
lea eax, [ebp - 0x140]
push 0x404d54
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x410b79
mov dword [ebp - 0x24], 5
jmp 0x410ba6
lea eax, [ebp - 0x140]
push 0x404d48
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x410ba6
mov dword [ebp - 0x24], 4
jmp 0x410ba6
mov dword [ebp - 0x24], 2
jmp 0x410ba6
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x24]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x348]
push 0x404d44
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x410bd1
mov dword [ebp - 0x2c], 2
jmp 0x410c09
lea eax, [ebp - 0x348]
push 0x404d3c
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x410bee
mov dword [ebp - 0x2c], 1
jmp 0x410c09
lea eax, [ebp - 0x348]
push 0x404d38
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x410c09
mov dword [ebp - 0x2c], 3
lea eax, [ebp - 0x758]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040c247
push dword [0x419c4c]
mov dword [ebp - 4], ebx
mov ebx, 0x404d30
lea ecx, [ebp - 0x28]
push ebx
call fcn.00412998
push dword [0x419c44]
mov esi, 0x404d28
lea ecx, [ebp - 0x28]
push esi
call fcn.00412998
cmp dword [ebp - 0x10], 0
je 0x410fb8
lea eax, [ebp - 0x654]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jne 0x410c73
lea eax, [ebp - 0x550]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x410d91
mov eax, dword [0x4045c8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x654]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.0040c410
push dword [0x419c4c]
lea ecx, [ebp - 0x1c]
push ebx
call fcn.00412998
push dword [0x419c44]
lea ecx, [ebp - 0x1c]
push esi
call fcn.00412998
push 0
push dword [ebp - 0x1c]
call fcn.0040e44b
pop ecx
mov ebx, 0x404b40
test eax, eax
pop ecx
jne 0x410cdd
push dword [ebp - 0x1c]
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.0041267c
add esp, 0x10
jmp 0x410ce9
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push eax
call fcn.0040c3a3
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.004123e3
mov esi, dword [ebp - 0x18]
mov ecx, esi
call fcn.00411393
test eax, eax
mov dword [ebp - 0x18], eax
je 0x410d24
push eax
mov ecx, esi
call fcn.004108a8
push dword [ebp - 0x18]
mov ebx, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp - 0x10]
push ebx
mov eax, dword [ecx]
jmp 0x410d74
lea eax, [ebp - 0x550]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.0041267c
add esp, 0xc
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.004123e3
mov ecx, esi
call fcn.00411393
mov ebx, eax
test ebx, ebx
je 0x410d77
push ebx
mov ecx, esi
call fcn.004108a8
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 0x3c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040c21b
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040c21b
jmp 0x410d94
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x85c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
push 1
pop ecx
cmp eax, ecx
jne 0x410daf
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
call fcn.00410139
mov ecx, dword [esi + 8]
add esi, 4
xor ebx, ebx
mov dword [ebp - 0x18], esi
cmp ecx, ebx
jne 0x410dcd
xor eax, eax
jmp 0x410dd5
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
mov ecx, dword [ebp - 0x10]
inc eax
push eax
call fcn.00410199
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x44c]
push eax
call fcn.00410143
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x28]
lea ecx, [eax + 0x34]
call fcn.0040c410
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x244]
push eax
call fcn.00410152
push ecx
lea eax, [ebp - 0x960]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.0040c247
mov ecx, dword [ebp - 0x10]
call fcn.00410161
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x24], esi
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x50], ecx
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c247
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
mov eax, dword [eax - 8]
dec eax
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004125b9
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040c3a3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040c21b
push 0x5c
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
inc eax
pop ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c410
mov eax, dword [ebp - 0x14]
push ecx
mov dword [ebp - 0x34], esp
mov ecx, esp
cmp dword [eax - 0xc], ebx
jl 0x410ead
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x410ebc
mov eax, dword [0x4045c8]
mov dword [ecx], eax
push dword [ebp - 0x14]
call fcn.0040c410
mov ecx, dword [ebp - 0x10]
call fcn.00412b65
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], ebx
push 0x80000001
mov dword [eax + 0x40], 1
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x14]
push 0x404cac
call fcn.0040e078
add esp, 0x10
test eax, eax
je 0x410f02
cmp dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x10]
je 0x410eff
mov dword [eax + 0x40], 1
jmp 0x410f02
mov dword [eax + 0x40], ebx
push dword [ebp + 8]
push ebx
push 0x404d1c
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
mov eax, dword [ebp - 0x10]
je 0x410f25
mov dword [eax + 0x44], 1
jmp 0x410f28
mov dword [eax + 0x44], ebx
mov eax, dword [0x4045c8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00412416
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0040c3a3
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.0040c21b
cmp esi, 3
jne 0x410f94
push ebx
push dword [ebp - 0x28]
call fcn.0040e44b
pop ecx
test eax, eax
pop ecx
jne 0x410f94
push ebx
push dword [ebp - 0x38]
call fcn.0040e44b
pop ecx
test eax, eax
pop ecx
jne 0x410f94
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x410fa0
mov eax, dword [ecx]
push 1
call dword [eax + 0x4c]
jmp 0x410fa0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
call fcn.004123d2
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0040c21b
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040c21b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040c21b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4