Function at 0x40d3f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469a2c
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.00442bb0
mov eax, dword [0x48794c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x98], 0
lea ecx, [ebx + 0x80]
push 0
je 0x40d439
call fcn.0045bd70
jmp 0x40d43e
call fcn.0045bd30
lea ecx, [ebx + 0x80]
call fcn.0045d9b0
mov dword [ebp - 0x82c], eax
test eax, eax
je 0x40d72f
jmp 0x40d460
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x1038]
push ecx
call fcn.0045d9c0
add esp, 8
cmp dword [ebx + 0x98], 0
mov ecx, 0x203
mov esi, eax
lea edi, [ebp - 0x81c]
push 0
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x80]
push 0
je 0x40d4a6
mov edx, dword [ebp - 0x81c]
push edx
call fcn.0045df30
jmp 0x40d4b2
mov eax, dword [ebp - 0x81c]
push eax
call fcn.0045ddc0
cmp eax, 0xffffffff
je 0x40d722
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x818], 0xff
je 0x40d722
call fcn.0040e5e6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40d74a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x824], eax
mov dword [ebp - 4], 0
movzx ecx, byte [ebp - 0x818]
push ecx
lea edx, [ebp - 0x824]
push str._d_1
push edx
call fcn.00403600
add esp, 0xc
cmp byte [ebp - 0x817], 0xff
je 0x40d5a9
lea edi, [ebp - 0x817]
call fcn.0040e5e6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40d74a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x820], eax
mov byte [ebp - 4], 1
movzx ecx, byte [edi]
push ecx
lea edx, [ebp - 0x820]
push 0x47825c
push edx
call fcn.00403600
mov esi, dword [ebp - 0x820]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
lea ecx, [ebp - 0x824]
call fcn.004034b0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d5a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp byte [edi], 0xff
jne 0x40d52b
mov eax, dword [ebx + 0x74]
mov esi, dword [ebp - 0x824]
push eax
push 0
push esi
push str.PortMap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x40d6f9
call fcn.0040e5e6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40d74a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x820], eax
mov byte [ebp - 4], 2
inc dword [ebx + 0x94]
mov eax, dword [ebx + 0x94]
push eax
lea ecx, [ebp - 0x820]
push 0x47a040
push ecx
call fcn.00403600
mov eax, dword [ebx + 0x74]
mov edx, dword [ebp - 0x820]
add esp, 0xc
push eax
push edx
push esi
push str.PortMap
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
call fcn.0040e5e6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40d74a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x828], esi
push 0x95
mov byte [ebp - 4], 3
call fcn.0040e6f6
test eax, eax
je 0x40d67a
push 0x95
push eax
lea ecx, [ebp - 0x828]
call fcn.00401690
mov esi, dword [ebp - 0x828]
mov ecx, dword [ebx + 0x94]
inc ecx
push ecx
lea edx, [ebp - 0x820]
push esi
push edx
call fcn.00403600
mov edi, dword [ebp - 0x820]
add esp, 0xc
push edi
push 0x464
mov ecx, ebx
call fcn.00416739
mov ecx, eax
call fcn.0041684f
push 0x64
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Beep]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d6d9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d6f9
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x824]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d722
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x82c], 0
jne 0x40d460
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043ea11
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004014a0
int3