Function at 0x40d6c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22e0
call fcn.00457ef0
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x63
lea eax, [ebp - 0x6f]
mov dword [ebp - 0x22cc], 0
push 0
push eax
mov byte [ebp - 0x70], 0
call fcn.00453200
add esp, 0xc
mov byte [ebp - 0x2c8], 0
lea eax, [ebp - 0x2c7]
push 0x257
push 0
push eax
call fcn.00453200
add esp, 0xc
mov byte [ebp - 0x22c8], 0
lea eax, [ebp - 0x22c7]
push 0x1fff
push 0
push eax
call fcn.00453200
add esp, 0xc
lea edx, [ebp - 0x2c8]
lea ecx, [ebp - 0x70]
call fcn.0040d520
test eax, eax
jne 0x40d755
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x2c8]
mov dword [0x727608], eax
lea ecx, [edx + 1]
mov ax, word [ebp - 0x6c]
mov word [0x72760c], ax
mov al, byte [edx]
inc edx
test al, al
jne 0x40d770
sub edx, ecx
lea ecx, [ebp - 0x2c8]
call fcn.0040d640
mov ecx, 0x727688
mov dword [0x727610], eax
mov dword [0x727614], edx
call fcn.0040cbc0
test eax, eax
je 0x40d743
call fcn.0040d210
test eax, eax
je 0x40d743
mov edx, 0x7277f4
lea ecx, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x40d7b0
sub edx, ecx
je 0x40d743
lea eax, [ebp - 0x22c8]
mov ecx, 0x7277f4
push eax
call fcn.0040cd50
add esp, 4
lea ecx, [ebp - 0x22c8]
push dword [ebp - 0x18fc]
push dword [ebp - 0x1900]
call fcn.0040cf40
mov ecx, dword [ebp - 0x22c8]
add esp, 8
mov eax, dword [ebp - 0x22c4]
mov dword [0x727600], ecx
or ecx, eax
mov dword [0x727604], eax
je 0x40d743
mov esi, dword [0x727610]
push 0
push 0xffffffffffffffff
push dword [0x727614]
push esi
call fcn.0046c000
add eax, esi
push eax
call fcn.00458df4
xor eax, eax
mov ecx, 0x3c
mov edi, 0x728a4c
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x22b8]
mov ecx, 0x1e
cmp eax, ecx
cmovg eax, ecx
xor ecx, ecx
mov dword [ebp - 0x22e0], eax
mov dword [ebp - 0x22d8], ecx
test eax, eax
jle 0x40d99d
lea eax, [ebp - 0x22b0]
xor esi, esi
mov dword [ebp - 0x22d0], eax
jmp 0x40d870
cmp esi, 0xf0
jae 0x40d99d
mov edi, dword [eax]
mov dword [ebp - 0x22d4], edi
cmp edi, 1
jne 0x40d8a6
mov edx, dword [ebp - 0x22cc]
mov eax, dword [ebp + edx*4 - 0x20d0]
mov dword [esi + 0x728a4c], eax
add esi, 4
add edx, edi
jmp 0x40d975
cmp edi, 2
jne 0x40d8e4
mov edx, dword [ebp - 0x22cc]
mov eax, dword [ebp + edx*4 - 0x20d0]
mov dword [esi + 0x728a4c], eax
add esi, 4
cmp esi, 0xf0
jae 0x40d99d
mov eax, dword [ebp + edx*4 - 0x20cc]
mov dword [esi + 0x728a4c], eax
add esi, 4
add edx, edi
jmp 0x40d975
call fcn.00458dd3
xor edx, edx
div edi
add edx, dword [ebp - 0x22cc]
mov eax, dword [ebp + edx*4 - 0x20d0]
mov dword [esi + 0x728a4c], eax
add esi, 4
cmp esi, 0xf0
jae 0x40d99d
xor edi, edi
call fcn.00458dd3
xor edx, edx
div dword [ebp - 0x22d4]
mov eax, edx
mov edx, dword [ebp - 0x22cc]
mov dword [ebp - 0x22dc], eax
lea ecx, [eax + edx]
mov eax, dword [esi + 0x728a48]
cmp eax, dword [ebp + ecx*4 - 0x20d0]
jne 0x40d949
inc edi
cmp edi, 0x3e8
jl 0x40d911
jmp 0x40d961
mov eax, dword [ebp - 0x22dc]
add eax, edx
mov eax, dword [ebp + eax*4 - 0x20d0]
mov dword [esi + 0x728a4c], eax
add esi, 4
cmp esi, 0xf0
jae 0x40d99d
add edx, dword [ebp - 0x22d4]
mov ecx, dword [ebp - 0x22d8]
mov eax, dword [ebp - 0x22d0]
inc ecx
add eax, 0x10
mov dword [ebp - 0x22cc], edx
mov dword [ebp - 0x22d8], ecx
mov dword [ebp - 0x22d0], eax
cmp ecx, dword [ebp - 0x22e0]
jl 0x40d870
mov esi, 0x728a4c
mov edi, dword [esi]
test edi, edi
je 0x40d9df
push 0x63
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x70], 0
push 0
push eax
call fcn.00453200
add esp, 0xc
push edi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x70]
push 0x4826fc
push eax
call fcn.004582cf
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esi, 4
cmp esi, 0x728b3c
jl 0x40d9a2
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004524fc
mov esp, ebp
pop ebp
ret