Function at 0x40acc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x214
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
push esi
push edi
push ebx
push 1
push str.EnableFilter
mov esi, ecx
push str.PortSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x108], eax
mov ecx, dword [esi + 0x110]
add esi, 0x10c
xor ebp, ebp
cmp ecx, ebp
je 0x40ad1b
mov eax, dword [esi + 8]
cmp eax, ebp
jbe 0x40ad1b
mov edx, ecx
mov edi, eax
mov eax, dword [edx]
cmp eax, ebp
je 0x40ad15
mov eax, dword [eax]
cmp eax, ebp
jne 0x40ad0f
add edx, 4
dec edi
jne 0x40ad09
push ecx
call fcn.00458a71
mov ecx, dword [esi + 0x14]
add esp, 4
mov dword [esi + 4], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
call fcn.00453470
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x20]
push 0x104
push eax
push 0x4aa41c
push str.FilterPort
push str.PortSetting
mov dword [esi + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], ebp
push ecx
call fcn.0043f601
add esp, 4
test eax, eax
je 0x40af3f
lea edx, [esp + 0x1c]
push 0x2c
push edx
lea edi, [esp + 0x24]
call fcn.0043f8c6
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x40ae41
jmp 0x40ada6
xor ebp, ebp
lea eax, [esp + 0x10]
mov word [ebx], bp
push eax
push 0x4a90e0
push edi
call fcn.0043f6f3
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esi + 8]
mov eax, ecx
xor edx, edx
shr eax, 4
div ebp
add esp, 0xc
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
mov edi, edx
mov edx, dword [esi + 4]
test edx, edx
je 0x40adf9
mov eax, dword [edx + edi*4]
test eax, eax
je 0x40adf5
cmp dword [eax + 8], ecx
je 0x40adf1
mov eax, dword [eax]
test eax, eax
jne 0x40ade4
jmp 0x40adf5
test eax, eax
jne 0x40ae22
test edx, edx
jne 0x40ae03
push 1
push ebp
mov ecx, esi
call fcn.0040dcd0
mov ecx, esi
call fcn.0040aff0
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov edx, dword [esi + 4]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [edx + edi*4], eax
mov ecx, dword [esp + 0x18]
lea edi, [ebx + 2]
push 0x2c
push edi
mov dword [eax + 0xc], ecx
call fcn.0043f8c6
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40ada4
lea edx, [esp + 0x10]
push edx
push 0x4a90e0
push edi
call fcn.0043f6f3
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esi + 8]
mov eax, ecx
xor edx, edx
shr eax, 4
div ebx
add esp, 0xc
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov ebp, edx
mov edx, dword [esi + 4]
test edx, edx
je 0x40ae97
mov eax, dword [edx + ebp*4]
test eax, eax
je 0x40ae93
cmp dword [eax + 8], ecx
je 0x40ae89
mov eax, dword [eax]
test eax, eax
jne 0x40ae7c
jmp 0x40ae93
test eax, eax
mov edi, eax
jne 0x40af38
test edx, edx
jne 0x40aec3
lea edi, [ebx*4]
push edi
call fcn.00458a48
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 8], ebx
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40aefc
mov eax, dword [esi + 0x18]
push 0x10
lea ecx, [esi + 0x14]
push eax
push ecx
call fcn.00453450
mov ecx, dword [esi + 0x18]
add eax, 4
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [eax + edx - 0x10]
jl 0x40aefc
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x10
dec ecx
jne 0x40aeee
mov edi, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
inc ecx
push 1
mov eax, dword [edi]
lea ebx, [edi + 8]
push ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], ecx
call fcn.0040b050
lea ecx, [edi + 0xc]
push 1
push ecx
call fcn.0040b050
mov edx, dword [esp + 0x18]
mov dword [edi + 4], ebp
mov dword [ebx], edx
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebp*4]
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov dword [edx + ebp*4], edi
mov eax, dword [esp + 0x14]
mov dword [edi + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 4