Function at 0x401fa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562644
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x5bfe54]
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, ecx
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x18c], eax
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00544eb0
add esp, 0xc
mov byte [ebp - 4], 2
call fcn.00408d43
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x4024ae
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x188], eax
mov byte [ebp - 4], 4
call fcn.00408d43
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4024b8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x184], eax
mov eax, 0x5a34a6
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x184]
test eax, 0xffff0000
jne 0x402064
movzx eax, ax
push eax
call fcn.00402ca0
jmp 0x402070
push 0
push 0x5a34a6
call fcn.00403150
mov byte [ebp - 4], 8
call fcn.00408d43
mov ecx, eax
mov byte [ebp - 4], 7
test ecx, ecx
je 0x4024c2
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
lea edi, [ebx + 0x10]
mov dword [ebp - 0x18c], edi
mov byte [ebp - 4], 9
mov eax, str.ConfigIPC.ini
mov esi, dword [ebp - 0x184]
sub eax, esi
mov dword [ebp - 0x194], eax
push 0xd
push str.ConfigIPC.ini
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x180], eax
call fcn.0054776c
mov edx, dword [ebp - 0x180]
mov ecx, eax
mov eax, SysReAllocString
mov dword [ebp - 0x198], ecx
sub eax, ecx
add esp, 8
cmp eax, edx
jl 0x4024a4
add edx, ecx
js 0x4024a4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x40210e
push edx
lea ecx, [ebp - 0x184]
call fcn.00402fe0
mov esi, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x194]
mov eax, dword [ebp - 0x180]
lea edx, [ecx + esi]
cmp ecx, eax
jbe 0x402126
mov edx, str.ConfigIPC.ini
mov ecx, dword [ebp - 0x198]
add eax, esi
push ecx
push edx
push ecx
push eax
call fcn.00403080
mov ecx, dword [ebp - 0x180]
lea eax, [esi - 0x10]
add ecx, dword [ebp - 0x198]
add esp, 0x10
mov esi, dword [ebp - 0x184]
mov dword [ebp - 0x194], eax
cmp ecx, dword [eax + 8]
jg 0x4024a4
push esi
push 0x40
mov dword [eax + 4], ecx
lea eax, [ebp - 0x50]
push eax
push 0x5a34a6
push str.Solution
push str.themes
mov byte [ecx + esi], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x50]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402187
sub ecx, edx
lea eax, [ebp - 0x50]
push ecx
push eax
lea ecx, [ebp - 0x188]
call fcn.00403150
mov esi, dword [ebp - 0x188]
cmp dword [esi - 0xc], 0
jne 0x4021c4
push 7
push str.English
lea ecx, [ebp - 0x188]
call fcn.00403150
mov esi, dword [ebp - 0x188]
mov byte [ebp - 4], 0xb
call fcn.00408d43
mov ecx, eax
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x4024cc
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x198], eax
add eax, 0x10
mov dword [ebp - 0x180], eax
mov byte [ebp - 4], 0xc
test edi, edi
jne 0x4022af
mov ecx, dword [ebp - 0x190]
lea eax, [ebp + 8]
push eax
call fcn.00402760
mov edx, dword [ebp - 0x198]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402227
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, 0xfffffff0
mov ecx, 0xfffffffc
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402244
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x194]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40225e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402275
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40228d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x190]
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.00542aa4
mov esp, ebp
pop ebp
ret
cmp dword [edi - 0xc], 0
je 0x4023bc
push 0x12c
lea eax, [ebp - 0x17c]
push 0
push eax
call fcn.00544eb0
add esp, 0xc
lea eax, [ebp - 0x17c]
push edi
push 0x12c
push eax
push 0x5a34a6
push dword [ebp + 8]
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x17c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4022f8
sub ecx, edx
lea eax, [ebp - 0x17c]
push ecx
push eax
lea ecx, [ebp - 0x180]
call fcn.00403150
mov edi, dword [ebp - 0x180]
cmp dword [edi - 0xc], 0
jle 0x4023b6
mov ecx, dword [ebp - 0x190]
lea eax, [ebp - 0x180]
push eax
call fcn.00402760
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402350
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x402364
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x194]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40237e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402395
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40228d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x40228d
mov edi, dword [ebp - 0x18c]
push 0x5a349c
push dword [ebp + 8]
call fcn.00547be9
add esp, 8
test eax, eax
je 0x402408
lea edx, [eax + 1]
test edx, edx
jne 0x4023e8
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x180]
call fcn.00403150
jmp 0x402417
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4023f0
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x180]
call fcn.00403150
jmp 0x402417
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x180]
call fcn.00402990
mov ecx, dword [ebp - 0x190]
lea eax, [ebp - 0x180]
push eax
call fcn.00402760
mov edx, dword [ebp - 0x180]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402449
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x402460
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x194]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40247a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402491
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jmp 0x402283
push 0x80070057
call fcn.00403100
push 0x80004005
call fcn.00403100
push 0x80004005
call fcn.00403100
push 0x80004005
call fcn.00403100
push 0x80004005
call fcn.00403100
int3