Function at 0x410947
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x417578
call fcn.00417000
sub esp, 0x948
push ebx
and byte [ebp - 0x33c], 0
push esi
push edi
push 0x40
mov dword [ebp - 0x1c], ecx
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x33b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x440], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x43f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x134], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x133]
rep stosd dword es:[edi], eax
and byte [ebp - 0x954], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x953]
rep stosd dword es:[edi], eax
and byte [ebp - 0x850], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x84f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x238], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x237]
rep stosd dword es:[edi], eax
and byte [ebp - 0x648], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x647]
rep stosd dword es:[edi], eax
and byte [ebp - 0x544], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x543]
rep stosd dword es:[edi], eax
and byte [ebp - 0x74c], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x74b]
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 - 0x33c]
push ebx
mov edi, 0x417d04
push eax
push edi
push 0xbc
call fcn.0040d9d2
pop ecx
push eax
push 0x404c88
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call esi
lea eax, [ebp - 0x33c]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jne 0x410a7e
push dword [ebp + 8]
lea eax, [ebp - 0x33c]
push ebx
push eax
push edi
push 0x404d7c
push 0x404c88
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x440]
push ebx
push eax
push edi
push 0x404d70
push 0x404c88
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x134]
push ebx
push eax
push edi
push 0x404d68
push 0x404c88
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x850]
push ebx
push eax
push edi
push 0x404d5c
push 0x404c88
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x648]
push ebx
push eax
push edi
push 0x404d54
push 0x404c88
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x544]
push ebx
push eax
push edi
push 0x404d4c
push 0x404c88
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x74c]
push ebx
push eax
push edi
push 0x404c90
push 0x404c88
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x954]
push ebx
push eax
push edi
mov edi, 0x404c88
push 0x404d44
push edi
call esi
push dword [ebp + 8]
xor esi, esi
push esi
push 0x404d38
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x238]
push eax
push dword [ebp + 8]
call fcn.004169f2
lea eax, [ebp - 0x134]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
push 0x404d24
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x410bf7
lea eax, [ebp - 0x134]
push 0x404d1c
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x410bf7
lea eax, [ebp - 0x134]
push 0x404d0c
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x410bc2
lea eax, [ebp - 0x134]
push 0x404d04
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x410bc2
lea eax, [ebp - 0x134]
push 0x404cf4
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x410bc9
mov dword [ebp - 0x20], 2
push 1
pop ebx
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x440]
push 0x404cf0
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x410bff
mov dword [ebp - 0x24], 2
jmp 0x410c33
push 1
pop ebx
mov dword [ebp - 0x20], ebx
jmp 0x410bcc
lea eax, [ebp - 0x440]
push 0x404ce8
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x410c18
mov dword [ebp - 0x24], ebx
jmp 0x410c33
lea eax, [ebp - 0x440]
push 0x404ce4
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x410c33
mov dword [ebp - 0x24], 3
cmp dword [ebp - 0x10], 0
je 0x410f09
lea eax, [ebp - 0x648]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jne 0x410c63
lea eax, [ebp - 0x544]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x410d66
mov eax, dword [0x404590]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x648]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x238]
push eax
mov esi, 0x404b0c
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00411d40
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x28], esp
mov ecx, esp
cmp dword [eax - 0xc], 0
jl 0x410cae
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x410cbd
mov eax, dword [0x404590]
mov dword [ecx], eax
push dword [ebp - 0x18]
call fcn.0040c4b7
mov ecx, dword [ebp - 0x1c]
call fcn.004112c3
mov ebx, eax
test ebx, ebx
je 0x410ce5
mov ecx, dword [ebp - 0x1c]
push ebx
call fcn.0041090e
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp - 0x10]
push esi
mov eax, dword [ecx]
jmp 0x410d54
lea eax, [ebp - 0x544]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00411d40
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x28], esp
mov ecx, esp
cmp dword [eax - 0xc], 0
jl 0x410d1f
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x410d2e
mov eax, dword [0x404590]
mov dword [ecx], eax
push dword [ebp - 0x18]
call fcn.0040c4b7
mov ecx, dword [ebp - 0x1c]
call fcn.004112c3
mov esi, eax
test esi, esi
je 0x410d57
mov ecx, dword [ebp - 0x1c]
push esi
call fcn.0041090e
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp - 0x10]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040c36c
push 1
pop ebx
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
cmp eax, ebx
pop ecx
jne 0x410d7e
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x44], ebx
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
call fcn.004102f2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
lea esi, [eax + 4]
test ecx, ecx
jne 0x410d9a
xor eax, eax
jmp 0x410da2
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
mov ecx, dword [ebp - 0x10]
inc eax
push eax
call fcn.00410352
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x33c]
push eax
call fcn.004102fc
lea eax, [ebp - 0x850]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x2c]
call fcn.0040c4b7
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x238]
push eax
call fcn.0041030b
push ecx
lea eax, [ebp - 0x954]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.0040c398
mov ecx, dword [ebp - 0x10]
call fcn.0041031a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x48], ecx
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c398
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
mov eax, dword [eax - 8]
dec eax
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00411ca4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040c44a
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040c36c
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.0040c4b7
mov eax, dword [ebp - 0x14]
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
cmp dword [eax - 0xc], 0
jl 0x410e7e
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x410e8d
mov eax, dword [0x404590]
mov dword [ecx], eax
push dword [ebp - 0x14]
call fcn.0040c4b7
mov ecx, dword [ebp - 0x10]
call fcn.004121ee
mov eax, dword [ebp - 0x10]
and dword [ebp - 0x2c], 0
push 0x80000001
mov dword [eax + 0x38], ebx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
push 0x404c80
call fcn.0040e2eb
add esp, 0x10
test eax, eax
je 0x410ece
cmp dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x10]
je 0x410eca
mov dword [eax + 0x38], ebx
jmp 0x410ece
and dword [eax + 0x38], 0
push dword [ebp + 8]
push 0
push 0x404cd8
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x2c], eax
test eax, eax
mov eax, dword [ebp - 0x10]
je 0x410eee
mov dword [eax + 0x3c], ebx
jmp 0x410ef2
and dword [eax + 0x3c], 0
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00411a72
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040c36c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4