Function at 0x408990
Capabilities:
Read .ini file
Receive data
Receive data on socket

Disassembly:
mov eax, 0x451c
call fcn.00457d20
mov al, byte [0x493b50]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4530]
mov ebp, ecx
push edi
mov byte [esp + 0x2524], al
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x2525]
cmp esi, 0xffffffff
rep stosd dword es:[edi], eax
jne 0x4089d5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x451c
ret 0xc
mov ecx, dword [ebp + 0x33e8]
lea ebx, [esi + esi*2]
shl ebx, 6
mov eax, dword [ebx + ecx + 0x6c]
cmp eax, 0xffffffff
jne 0x4089f9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x451c
ret 0xc
test eax, eax
jne 0x408bdd
mov ebp, dword [esp + 0x4530]
push ebp
call fcn.0043e700
add esp, 4
test eax, eax
je 0x408a2b
push 0
lea edx, [esp + 0x2528]
push 0x1001
push edx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov al, byte [0x493b50]
mov ecx, 0x41
mov byte [esp + 0x14], al
xor eax, eax
lea edi, [esp + 0x15]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
push 0x493f48
lea ecx, [esp + 0x1124]
push 0x400
push ecx
push str.English
push 0x48d194
push str.System
call ebx
lea edx, [esp + 0x1120]
lea eax, [esp + 0x14]
push edx
push 0x493e40
push str._sLanguage_s.ini
push eax
call fcn.00457c43
mov cl, byte [0x493b50]
xor eax, eax
mov byte [esp + 0x12c], cl
mov ecx, 0x400
lea edi, [esp + 0x12d]
lea edx, [esp + 0x12c]
rep stosd dword es:[edi], eax
mov edi, str.Too_many_connections.
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x48d174
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x48d170
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x134]
push ecx
call fcn.004085c0
push 0x48d16c
lea edx, [esp + 0x13c]
push 0x48d168
push edx
call fcn.004085c0
mov al, byte [0x493b50]
mov ecx, 0x400
mov byte [esp + 0x1548], al
xor eax, eax
lea edi, [esp + 0x1549]
add esp, 0x28
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1520]
push ecx
push 0x1000
lea eax, [esp + 0x124]
push edx
lea ecx, [esp + 0x128]
push eax
push ecx
push str.String
call ebx
mov al, byte [esp + 0x1520]
test al, al
je 0x408b76
lea edi, [esp + 0x1520]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x48d170
lea ecx, [esp + 0x120]
push 0x48d174
push ecx
call fcn.004085c0
push 0x48d168
lea edx, [esp + 0x12c]
push 0x48d16c
push edx
call fcn.004085c0
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x253c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x253c]
push ecx
push ebp
jmp 0x408f61
mov ecx, 0x494120
xor edi, edi
call fcn.0043e810
test eax, eax
je 0x408c45
mov eax, dword [0x4b1b10]
test eax, eax
je 0x408c00
mov edx, dword [esp + 0x4538]
push edx
jmp 0x408c02
push 0
push esi
mov ecx, 0x4bb720
call fcn.004421f0
mov ecx, dword [ebp + 0x33e8]
cmp eax, dword [ebx + ecx + 0x6c]
jle 0x4089ea
cmp dword [0x49faec], 1
jne 0x408c45
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xbb8
jg 0x408c45
mov ecx, 0x494120
call fcn.0043e810
test eax, eax
jne 0x408bed
mov esi, dword [esp + 0x4530]
push esi
call fcn.0043e700
add esp, 4
test eax, eax
je 0x408c6f
push 0
lea edx, [esp + 0x2528]
push 0x1001
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov al, byte [0x493b50]
mov ecx, 0x41
mov byte [esp + 0x14], al
xor eax, eax
lea edi, [esp + 0x15]
push 0x493f48
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1124]
push 0x400
push ecx
push str.English
push 0x48d194
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x1120]
lea eax, [esp + 0x14]
push edx
push 0x493e40
push str._sLanguage_s.ini
push eax
call fcn.00457c43
mov dl, byte [0x493b50]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], dl
add esp, 0x10
rep stosd dword es:[edi], eax
mov edi, str.Too_many_connections.
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, ebx
mov byte [esp + 0x3528], dl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea ebx, [esp + 0x11c]
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x400
lea edi, [esp + 0x3529]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], eax
cmp ecx, 0x1000
jbe 0x408d70
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + ecx + 1]
push ecx
call fcn.0046e679
add esp, 4
mov ebp, eax
mov dword [esp + 0x10], 1
jmp 0x408d77
lea ebp, [esp + 0x3528]
mov byte [ebp], 0
push 0x48d170
push ebx
call fcn.00457ca0
add esp, 8
test eax, eax
je 0x408e02
mov byte [eax], 0
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x48d174
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x48d170
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebx
lea ebx, [ecx + edx]
jmp 0x408d7b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x11c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x408e5e
push ebp
call fcn.0046e6a2
add esp, 4
push 0x48d16c
lea ecx, [esp + 0x120]
push 0x48d168
push ecx
call fcn.004085c0
mov dl, byte [0x493b50]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x152d]
mov byte [esp + 0x152c], dl
add esp, 0xc
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1520]
push eax
push 0x1000
lea edx, [esp + 0x124]
push ecx
lea eax, [esp + 0x128]
push edx
push eax
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x1520]
test al, al
je 0x408ef8
lea edi, [esp + 0x1520]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x48d170
lea ecx, [esp + 0x120]
push 0x48d174
push ecx
call fcn.004085c0
push 0x48d168
lea edx, [esp + 0x12c]
push 0x48d16c
push edx
call fcn.004085c0
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x253c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x4548]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x253c]
push ecx
push edx
call fcn.0043e7a0
add esp, 0x20
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x451c
ret 0xc