Function at 0x40d8c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov dword [esp + 0x28], ecx
push 0x40e9e0
mov edx, 0x10
mov dword [esp + 0x20], ebx
call fcn.004084d0
mov dword [esp + 0x14], eax
mov dword [esi], eax
call fcn.00407de0
push 0x1012
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea esi, [edi + 4]
lock inc dword [esi]
lea eax, [edi + 8]
mov dword [edi], 0
lea ecx, [eax + 8]
mov dword [eax], 0x1000
mov dword [eax + 4], ecx
mov dword [esp + 0xc], eax
xor eax, eax
mov word [ecx], ax
mov eax, dword [esp + 0x28]
push dword [eax + 4]
push 0x800
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
jne 0x40d98f
or eax, 0xffffffff
lock xadd dword [esi], eax
add eax, 0xffffffff
jne 0x40d979
mov esi, dword [edi]
test esi, esi
je 0x40d96a
lea eax, [edi + 8]
mov ecx, esi
push eax
call dword [0x427534]
call esi
call fcn.00407de0
push edi
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esp + 0xc]
add eax, eax
mov edx, dword [edi]
cmp edx, eax
cmovae edx, eax
mov eax, dword [edi + 4]
test dl, 1
lea ecx, [edx + 1]
cmove ecx, edx
xor edx, edx
mov dword [edi], ecx
mov word [ecx + eax], dx
call fcn.00407de0
push 0x10010
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
lock inc dword [eax + 4]
mov dword [eax], 0
lea esi, [eax + 8]
lea eax, [esi + 8]
mov dword [esi], 0xfffe
mov dword [esi + 4], eax
xor ecx, ecx
mov word [eax], cx
mov ecx, 0x7ffffffe
mov edx, dword [edi + 4]
mov eax, edx
mov dword [esp + 0x20], esi
cmp word [eax], 0
je 0x40da05
add eax, 2
sub ecx, 1
jne 0x40d9f2
add ecx, ecx
mov dword [esp + 0x38], edx
mov eax, 0xfffffffc
sub eax, ecx
mov dword [esp + 0x34], eax
test edx, edx
je 0x40dd95
mov edi, 2
cmp word [edx], 0
je 0x40dd91
mov eax, dword ds:[esp + 0x28]
push dword [eax + 4]
push 0x7fff
push dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40dd31
test ebx, ebx
je 0x40db01
mov esi, dword [esp + 0x34]
test esi, esi
mov ebx, dword [esp + 0x38]
cmove esi, edi
call fcn.00407de0
lea ecx, [esi + 0x12]
push ecx
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
lock inc dword [eax + 4]
mov dword [eax], 0
lea edi, [eax + 8]
mov dword [edi], esi
lea eax, [edi + 8]
mov dword [edi + 4], eax
test ebx, ebx
je 0x40daaa
push esi
push ebx
push eax
call fcn.00416670
mov ecx, dword [edi + 4]
add esp, 0xc
mov eax, dword [edi]
xor edx, edx
mov word [ecx + eax], dx
jmp 0x40daaf
xor ecx, ecx
mov word [eax], cx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
mov ebx, dword [edx + 4]
cmp eax, ebx
jne 0x40daed
add ebx, ebx
cmp eax, ebx
ja 0x40dd86
mov esi, dword [edx + 0xc]
mov dword [edx + 4], ebx
call fcn.00407de0
lea ecx, ds:[ebx*4]
push ecx
push esi
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov edx, dword [esp + 0x1c]
mov dword [edx + 0xc], eax
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0xc]
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4], edi
inc dword [edx + 8]
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax]
mov eax, 0xfffe
cmp ecx, 0xfffe
cmova ecx, eax
mov eax, dword [esi + 4]
mov dword [esi], ecx
xor edx, edx
mov word [ecx + eax], dx
mov ecx, 0x7ffffffe
mov edi, dword [esi + 4]
mov eax, edi
mov dword [esp + 0x18], edi
jmp 0x40db30
cmp word [eax], dx
je 0x40db3d
add eax, 2
sub ecx, 1
jne 0x40db30
lea ecx, [ecx]
test edi, edi
je 0x40dd2c
lea eax, [ecx + ecx]
mov ebx, 0xfffffffc
sub ebx, eax
movzx eax, word ds:[edi]
mov esi, eax
test ax, ax
je 0x40dd28
cmp eax, 0x23
je 0x40dcf3
test ebx, ebx
je 0x40dd79
mov edx, ebx
mov ecx, edi
shr edx, 1
cmp ax, 0x3d
je 0x40db97
add ecx, 2
sub edx, 1
je 0x40dd79
movzx eax, word [ecx]
jmp 0x40db80
mov eax, ebx
shr eax, 1
sub eax, edx
cmp eax, 0xffffffff
je 0x40dd79
add eax, eax
mov dword [esp + 0x40], edi
lea ecx, [edi + 2]
mov dword [esp + 0x3c], eax
add ecx, eax
mov edi, ebx
sub edi, eax
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x3c]
sub edi, 2
push eax
push 0x4328c8
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], edi
push eax
push 3
call fcn.00408260
add esp, 0x10
mov dword [esp + 0x30], eax
mov ecx, eax
call fcn.00409a20
mov dword [esp + 0x2c], eax
test eax, eax
je 0x40dcb4
mov esi, dword [esp + 0x14]
mov edx, eax
and edx, 0x7fffffff
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 4]
dec ecx
and ecx, edx
mov ecx, dword [eax + ecx*4]
cmp ecx, 0xffffffff
je 0x40dc49
mov eax, dword [esp + 0x14]
mov esi, dword [esi + 8]
mov edi, dword [eax + 0x14]
mov edi, edi
lea eax, [edi + 8]
imul eax, ecx
mov ecx, dword [eax + esi + 4]
and ecx, 0x7fffffff
add eax, esi
cmp ecx, edx
je 0x40dc3f
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x40dc20
jmp 0x40dc45
nop
add eax, 8
jne 0x40dcb4
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40dc9c
call fcn.00407de0
lea ecx, [edi + 0x12]
push ecx
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
lock inc dword [eax + 4]
mov ecx, dword [esp + 0x24]
lea esi, [eax + 8]
mov dword [eax], 0
lea eax, [esi + 8]
mov dword [esi], edi
mov dword [esi + 4], eax
test ecx, ecx
je 0x40dc95
push edi
push ecx
push eax
call fcn.00416670
mov ecx, dword [esi + 4]
add esp, 0xc
mov eax, dword [esi]
xor edx, edx
mov word [ecx + eax], dx
jmp 0x40dc9e
xor ecx, ecx
mov word [eax], cx
jmp 0x40dc9e
xor esi, esi
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x28], esi
call fcn.004085a0
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
lea edi, [edx - 8]
lea eax, [edi + 4]
lock xadd dword [eax], ecx
lea eax, [ecx - 1]
test eax, eax
jne 0x40dcef
mov esi, dword [edi]
test esi, esi
je 0x40dcdd
push edx
mov ecx, esi
call dword [0x427534]
call esi
lea ecx, [ecx]
call fcn.00407de0
push edi
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [esp + 0x18]
add edi, 2
mov ecx, 0x7ffffffe
add edi, ebx
mov dword [esp + 0x18], edi
mov eax, edi
cmp word [eax], 0
je 0x40dd11
add eax, 2
sub ecx, 1
jne 0x40dd03
lea eax, ds:[ecx + ecx]
mov ebx, 0xfffffffc
sub ebx, eax
test edi, edi
jne 0x40db52
mov esi, dword [esp + 0x20]
mov edi, 2
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add ecx, 2
add edx, ecx
mov ecx, 0x7ffffffe
mov dword [esp + 0x38], edx
mov eax, edx
lea esp, [esp]
cmp word [eax], 0
je 0x40dd5e
add eax, 2
sub ecx, 1
jne 0x40dd50
lea eax, [ecx + ecx]
mov ecx, 0xfffffffc
sub ecx, eax
mov dword [esp + 0x34], ecx
test edx, edx
je 0x40dd91
mov ebx, dword [esp + 0x1c]
jmp 0x40da23
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
jmp 0x40dcf3
push 0xc00000f0
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov edi, dword [esp + 0xc]
add edi, 0xfffffff8
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [edi + 4]
lock xadd dword [eax], ecx
lea eax, [ecx - 1]
test eax, eax
jne 0x40ddd1
mov esi, dword [edi]
test esi, esi
je 0x40ddc2
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
call dword [0x427534]
mov edi, edi
call esi
call fcn.00407de0
push edi
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0x20]
lea edi, [ecx - 8]
lea eax, [edi + 4]
lock xadd dword [eax], ebx
lea eax, [ebx - 1]
test eax, eax
jne 0x40de06
mov esi, dword [edi]
test esi, esi
je 0x40ddf7
push ecx
mov ecx, esi
call dword [0x427534]
call esi
call fcn.00407de0
push edi
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0x44]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4