Function at 0x40ec80
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41bea2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x838
push ebx
xor ebx, ebx
mov dword [esp + 0x844], ebx
mov al, byte [esp + 7]
mov dword [esp + 0xc], ebx
mov byte [esp + 8], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov cl, byte [esp + 7]
push ebx
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov byte [esp + 0x848], 2
call fcn.00409580
push 0x4241a4
call fcn.0041255c
add esp, 4
lea ecx, [esp + 0x1c]
push eax
push 0x4241a4
call fcn.00409380
mov ecx, dword [esp + 0x84c]
lea edx, [esp + 8]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
mov byte [esp + 0x850], 3
call fcn.0040f100
add esp, 0xc
test al, al
jne 0x40ed88
push 1
lea ecx, [esp + 0x20]
call fcn.00409580
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x84c], 1
call fcn.0040f050
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00411f90
add esp, 4
lea ecx, [esp + 0x850]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
push 1
mov dword [esp + 0x18], ebx
call fcn.00409580
push 1
lea ecx, [esp + 0x864]
call fcn.00409580
xor al, al
pop ebx
mov ecx, dword [esp + 0x838]
mov dword fs:[0], ecx
add esp, 0x844
ret
push ebp
push esi
push edi
mov dword [esp + 0x24], ebx
xor ebp, ebp
mov edx, dword [esp + 0x18]
cmp edx, ebx
je 0x40ef13
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
sub eax, edx
sar eax, 4
cmp ecx, eax
jae 0x40ef13
mov ecx, 0x1f3
xor eax, eax
lea edi, [esp + 0x7a]
mov word [esp + 0x78], bx
rep stosd dword es:[edi], eax
lea esi, [edx + ebp]
push ebx
stosw word es:[edi], ax
mov cl, byte [esi]
mov byte [esp + 0x4c], cl
lea ecx, [esp + 0x4c]
call fcn.00409580
mov edx, dword [0x41d5a8]
lea ecx, [esp + 0x48]
push edx
push ebx
push esi
call fcn.00409170
mov edx, dword [esp + 0x860]
mov byte [esp + 0x850], 4
cmp edx, ebx
jne 0x40ee03
mov edx, 0x41d59c
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + ebp + 4]
cmp ecx, ebx
jne 0x40ee14
mov ecx, 0x41d59c
mov eax, dword [esp + 0x870]
cmp eax, ebx
jne 0x40ee24
mov eax, 0x41d59c
push edx
lea edx, [esp + 0x7c]
push 0x3e8
push edx
push 0x426c34
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
lea ecx, [eax + ebp]
lea eax, [esp + 0x68]
push ecx
push edx
push eax
call fcn.0040ce10
lea ecx, [esp + 0x34]
lea edx, [esp + 0x64]
push ecx
push eax
push edx
mov byte [esp + 0x868], 5
call fcn.0040ce10
add esp, 0x18
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x854], 7
call fcn.00409580
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call fcn.00409580
lea ecx, [esp + 0x78]
push ecx
call fcn.0041255c
add esp, 4
lea edx, [esp + 0x78]
lea ecx, [esp + 0x38]
push eax
push edx
call fcn.00409380
mov eax, dword [esp + 0x40]
mov byte [esp + 0x850], 8
cmp eax, ebx
jbe 0x40eed9
mov edx, dword [esp + 0x858]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x58]
push eax
push ecx
push edx
call fcn.0040fa80
add esp, 0xc
push 1
lea ecx, [esp + 0x3c]
call fcn.00409580
push 1
lea ecx, [esp + 0x5c]
call fcn.00409580
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x854], 3
call fcn.00409580
mov ecx, dword [esp + 0x24]
inc ecx
add ebp, 0x10
mov dword [esp + 0x24], ecx
jmp 0x40ed91
push 1
lea ecx, [esp + 0x2c]
call fcn.00409580
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, edi
mov byte [esp + 0x850], 1
je 0x40ef45
push ebx
mov ecx, esi
call fcn.0040f0a0
add esi, 0x10
cmp esi, edi
jne 0x40ef32
mov esi, dword [esp + 0x18]
push esi
call fcn.00411f90
mov ecx, dword [esp + 0x864]
add esp, 4
cmp ecx, ebx
mov dword [esp + 0x18], ebx
pop edi
pop esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
pop ebp
je 0x40ef86
mov al, byte [ecx - 1]
cmp al, bl
je 0x40ef7a
cmp al, 0xff
je 0x40ef7a
dec al
mov byte [ecx - 1], al
jmp 0x40ef86
add ecx, 0xfffffffe
push ecx
call fcn.00411f90
add esp, 4
mov ecx, dword [esp + 0x864]
mov dword [esp + 0x854], ebx
cmp ecx, ebx
mov dword [esp + 0x858], ebx
mov dword [esp + 0x85c], ebx
je 0x40efc4
mov al, byte [ecx - 1]
cmp al, bl
je 0x40efb8
cmp al, 0xff
je 0x40efb8
dec al
mov byte [ecx - 1], al
jmp 0x40efc4
add ecx, 0xfffffffe
push ecx
call fcn.00411f90
add esp, 4
mov ecx, dword [esp + 0x83c]
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x844
ret