Function at 0x4173c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b111
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x44bb64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [0x44bb48]
mov edx, dword [eax + 0xc]
mov ecx, 0x44bb48
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
test esi, esi
je 0x41743d
push esi
lea ecx, [ebp - 0x1c]
call fcn.00405620
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x118]
lea eax, [ebp - 0x1c]
mov ebx, 1
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], ebx
call fcn.00405350
mov byte [ebp + 0xf], bl
test al, al
jne 0x417441
mov byte [ebp + 0xf], 0
mov dword [ebp - 4], 0
test bl, 1
je 0x41746c
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41746c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp + 0xf], 0
je 0x4175b3
push esi
lea ecx, [ebp + 0x14]
call fcn.00405620
mov edx, dword [ebp - 0x18]
lea ecx, [ebp + 0x14]
push ecx
mov ecx, dword [edx + 0x118]
mov byte [ebp - 4], 2
call fcn.00405460
push eax
lea ecx, [ebp - 0x10]
call fcn.004055b0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4174c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
jne 0x4174d9
mov edx, dword [ebp + 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.004055b0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405620
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
mov byte [ebp - 4], 3
jl 0x41763f
push 0x44040c
push ecx
call fcn.00424226
mov ecx, dword [ebp - 0x14]
add esp, 8
test eax, eax
je 0x417518
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x41763f
cmp dword [ecx - 0xc], 0
jl 0x41763f
push str.Messages_
push ecx
call fcn.00424226
add esp, 8
test eax, eax
je 0x41763f
sub eax, dword [ebp - 0x14]
sar eax, 1
cmp eax, 1
jne 0x41763f
lea esi, [edi - 0x10]
push esi
call fcn.00401e10
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41757d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41759d
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp + 0x10], 0
je 0x4174c4
cmp dword [ebp + 0x14], 0
je 0x4174c4
mov esi, 0x100
add esi, esi
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ecx + 0x120]
js 0x417635
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4175f6
push esi
lea ecx, [ebp - 0x10]
call fcn.00401390
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x43c7e8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc eax
cmp eax, esi
jae 0x4175cc
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004235ed
add esp, 8
test eax, eax
js 0x417635
cmp eax, dword [edi - 8]
jg 0x417635
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
jmp 0x4174c4
push 0x80070057
call fcn.00401210
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00415350
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417672
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417695
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14