Function at 0x409820
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45bf26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
mov eax, dword [0x47bdb8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1b0]
mov dword [esp + 0x19c], eax
xor eax, eax
mov al, byte [esi]
push edi
mov edi, ecx
lea ecx, [esp + 0x9c]
push eax
push ecx
call fcn.004055c0
add esp, 8
call fcn.00441045
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x1c]
push 0x461ff0
push edx
mov dword [esp + 0x1bc], 0
call fcn.004032f0
mov eax, dword [edi + 0x1c]
add esp, 0x10
push 0
push 0
push 0x1042
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x4098df
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x1ac], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x409a30
mov ecx, dword [esi + 4]
push ecx
push 0
push eax
mov ecx, edi
call fcn.0043a0a6
cmp dword [esi + 0x10], ebx
mov eax, 0x462d88
jne 0x4098fc
mov eax, 0x462d80
push eax
mov eax, dword [esi + 0x1c]
push 1
push eax
mov ecx, edi
call fcn.0043a0a6
call fcn.00441045
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esi]
cmp eax, 7
mov byte [esp + 0x1ac], 1
jne 0x40999a
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004034f0
mov ecx, dword [0x49ba24]
mov eax, dword [eax]
push ecx
push 0x80
lea edx, [esp + 0x24]
push edx
push 0x4620c0
push eax
push 0x4620b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x409977
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409980
sub eax, edx
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.004017a0
jmp 0x4099cf
push eax
mov eax, dword [esi + 8]
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov ebp, esp
push eax
call fcn.00401290
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.00405b80
push eax
lea ecx, [esp + 0x1c]
push 0x4620ac
push ecx
call fcn.004032f0
add esp, 0x14
mov ebp, dword [esp + 0x10]
mov edx, dword [esi + 0x1c]
push ebp
push 2
push edx
mov ecx, edi
call fcn.0043a0a6
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x1c]
push ebx
push 3
push eax
mov ecx, edi
call fcn.0043a0a6
lea eax, [ebp - 0x10]
mov byte [esp + 0x1ac], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x1ac], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1a0]
call fcn.0041723c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret 4