Function at 0x49cab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4eef8e
push eax
mov dword fs:[0], esp
sub esp, 0x2fc
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, 0xcc2d98
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x508a04
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x118]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0xcc2db8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0xcc9350]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x49cbf4
or ecx, 0xffffffff
mov edi, 0x5482c0
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x118]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x741ccc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x118]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5482bc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x118]
push eax
call fcn.004d5170
mov ebx, dword [esp + 0x320]
xor ecx, ecx
xor esi, esi
add esp, 4
mov cl, byte [ebx]
mov ebp, 1
mov ax, word [ecx*8 + 0x54901c]
mov ecx, dword [0xcc5174]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov dl, byte [eax + ebx]
mov byte [esp + 0x10], dl
mov eax, dword [esp + 0x10]
and eax, 0xff
mov dword [0xcc2f3c], eax
mov edx, dword [ecx + 4]
cmp dword [edx + 8], esi
je 0x49cff4
mov dword [esp + 0x18], esi
xor eax, eax
push 0x1e
mov al, byte [ebx]
lea ecx, [esp + 0x28]
mov ax, word [eax*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, ebp
add ebp, 0x1e
add eax, ebx
push eax
push ecx
call fcn.004de2a0
xor edx, edx
push 0x1e
mov dl, byte [ebx]
mov ax, word [edx*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, ebp
add ebp, 0x1e
add eax, ebx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004de2a0
mov ecx, dword [esp + 0x30]
lea edi, [esp + 0x3c]
xor eax, eax
add esp, 0x18
lea edx, [ecx + 0xcc2ea4]
or ecx, 0xffffffff
mov byte [esp + 0x41], 0
mov byte [esp + 0x81], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x64]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0xcc2e0c]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add edx, 0x1e
and ecx, 3
cmp edx, 0x96
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], edx
jl 0x49cc59
xor ebx, ebx
mov eax, 0xcc2ea4
cmp byte [eax], 0
jne 0x49cd4d
inc ebx
add eax, 0x1e
cmp ebx, 5
jl 0x49cd3f
cmp ebx, 5
jne 0x49cd9e
push 0x100
call fcn.004ddf8e
mov ecx, dword [0xcc5174]
add esp, 4
mov esi, eax
mov edx, dword [ecx]
push edx
push str.You_have_no_characters_on__s_
push 0xff
push esi
call fcn.004de716
push esi
push 3
push 0
call fcn.004c4a70
push esi
call fcn.004ddac0
mov eax, dword [0xcc5174]
add esp, 0x20
mov dword [eax + 0x6c], 1
jmp 0x49d3cc
lea eax, [ebx + ebx*2]
or ecx, 0xffffffff
mov dword [0xcc2df4], ebx
lea eax, [eax + eax*4]
lea edx, [eax*2 + 0xcc2ea4]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0xcc4e98
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov ax, word [ebx*2 + 0xcc4c48]
and ecx, 3
mov word [0xcc4c60], ax
rep movsb byte es:[edi], byte [esi]
mov cx, word [ebx*2 + 0xcc4c54]
mov edi, edx
mov word [0xcc4c64], cx
mov ecx, dword [0xcc5174]
xor eax, eax
lea ebp, [ecx + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x549304]
mov byte [esp + 0xa4], 0x5d
test ah, 0x80
je 0x49ce3e
lea eax, [esp + 0xa4]
push 3
push eax
call fcn.004906b0
add esp, 8
jmp 0x49ce47
mov word [0xd15af0], 1
push 0xedededed
call sub.WSOCK32.dll_htonl
lea ecx, [esp + 0xa4]
mov esi, eax
push ecx
call fcn.00490690
and eax, 0xffff
lea edx, [esp + 0xa8]
mov dword [esp + eax + 0xa8], esi
add eax, 4
push eax
push edx
call fcn.004906b0
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0xcc2d98
or ecx, 0xffffffff
xor eax, eax
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 + 0xb0]
push ecx
call fcn.00490690
and eax, 0xffff
mov ecx, 7
lea esi, [esp + 0x54]
lea edx, [esp + 0xb4]
lea edi, [esp + eax + 0xb4]
add eax, 0x1e
rep movsd dword es:[edi], dword [esi]
push eax
push edx
movsw word es:[edi], word [esi]
call fcn.004906b0
mov edi, 0xcc2d78
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5c]
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 7
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xbc]
push ecx
stosw word es:[edi], ax
call fcn.00490690
and eax, 0xffff
mov ecx, 7
lea esi, [esp + 0x60]
lea edx, [esp + 0xc0]
lea edi, [esp + eax + 0xc0]
add eax, 0x1e
rep movsd dword es:[edi], dword [esi]
push eax
push edx
movsw word es:[edi], word [esi]
call fcn.004906b0
lea eax, [esp + 0xc8]
push ebx
push eax
call fcn.004903f0
mov ecx, dword [0xcc516c]
lea eax, [esp + 0xd0]
mov edx, dword [ecx + 0x30048]
push edx
push eax
call fcn.004903f0
mov edx, dword [0xcc5174]
add esp, 0x34
lea ecx, [esp + 0xa4]
push ecx
mov ecx, dword [edx + 4]
call fcn.004c2f70
mov eax, dword [0xcc516c]
cmp dword [eax + 4], 0xffffffff
jne 0x49cfb0
mov ecx, dword [0xcc5174]
mov edx, dword [ecx + 4]
mov dword [0xcc516c], edx
push 0x100
call fcn.004ddf8e
mov esi, eax
mov eax, dword [0xcc5174]
add esp, 4
mov ecx, dword [eax]
push 0xcc4e98
push ecx
push str.Connected_to__s_with__s
push 0xff
push esi
call fcn.004de716
push esi
push 3
push 0
call fcn.004c4a70
push esi
call fcn.004ddac0
add esp, 0x24
jmp 0x49d3cc
push 0xd4
call fcn.004ddf8e
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, esi
mov dword [esp + 0x314], esi
je 0x49d01d
mov ecx, eax
call fcn.004727a0
mov dword [esp + 0x18], eax
jmp 0x49d021
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x314], 0xffffffff
mov dword [0xb66114], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
xor eax, eax
push 0x1e
mov al, byte [ebx]
lea ecx, [esp + 0x28]
mov ax, word [eax*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, ebp
add ebp, 0x1e
add eax, ebx
push eax
push ecx
call fcn.004de2a0
xor edx, edx
push 0x1e
mov dl, byte [ebx]
mov ax, word [edx*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, ebp
add ebp, 0x1e
add eax, ebx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004de2a0
mov ecx, dword [esp + 0x34]
lea edi, [esp + 0x3c]
xor eax, eax
add esp, 0x18
lea edx, [ecx + 0xcc2ea4]
or ecx, 0xffffffff
mov byte [esp + 0x41], 0
mov byte [esp + 0x81], 0
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
lea edi, [esp + 0x64]
lea edx, [ecx + 0xcc2e0c]
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49d12c
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
push eax
call fcn.004731f0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
add eax, 0x1e
inc esi
cmp eax, 0x96
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
jl 0x49d03e
xor ecx, ecx
mov cl, byte [ebx]
mov ax, word [ecx*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, ebp
inc ebp
mov al, byte [eax + ebx]
test al, al
mov byte [esp + 0x10], al
je 0x49d387
mov eax, dword [esp + 0x10]
and eax, 0xff
mov dword [esp + 0x10], eax
mov dword [0xcc2f50], eax
lea esi, [eax*4 + 4]
push esi
call fcn.004ddf8e
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [0xcc2f4c], edi
push esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.004ddf8e
mov dword [0xcc2f48], eax
mov eax, dword [esp + 0x18]
add esp, 8
xor esi, esi
test eax, eax
mov dword [esp + 0x14], esi
jle 0x49d387
lea eax, [esp + 0xa4]
mov dword [esp + 0x1c], eax
jmp 0x49d1e3
mov esi, dword [esp + 0x14]
xor ecx, ecx
push 0x1f
mov cl, byte [ebx]
mov cx, word [ecx*8 + 0x54901c]
and cx, 0x8000
mov ax, cx
neg ax
sbb eax, eax
and eax, 2
inc eax
and eax, 0xffff
add eax, ebp
inc ebp
neg cx
sbb ecx, ecx
mov dl, byte [eax + ebx]
and ecx, 2
lea eax, [esp + 0x88]
inc ecx
mov byte [esp + 0x27], dl
and ecx, 0xffff
add ecx, ebp
add ebp, 0x1f
add ecx, ebx
push ecx
push eax
call fcn.004de2a0
xor ecx, ecx
push 0x1f
mov cl, byte [ebx]
lea edx, [esp + 0x108]
mov byte [esp + 0xb2], 0
mov ax, word [ecx*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, ebp
add ebp, 0x1f
add eax, ebx
push eax
push edx
call fcn.004de2a0
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x116], 0
je 0x49d2f9
lea edi, [esp + 0xf8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x84]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 3]
push eax
call fcn.004ddf8e
mov ecx, dword [0xcc2f4c]
add esp, 4
lea edx, [esp + 0xf8]
mov dword [ecx + esi*4], eax
mov ecx, dword [0xcc2f4c]
lea eax, [esp + 0x84]
push edx
mov edx, dword [ecx + esi*4]
push eax
push str._s:__s
push edx
call fcn.004de113
movsx eax, byte [esp + 0x33]
mov ecx, dword [0xcc2f48]
add esp, 0x10
mov dword [ecx + esi*4], eax
test esi, esi
jle 0x49d34a
lea esi, [esp + 0x44]
lea edi, [esp + 0x84]
mov dl, byte [edi]
mov cl, byte [esi]
mov al, dl
cmp dl, cl
jne 0x49d330
test al, al
je 0x49d32c
mov cl, byte [edi + 1]
mov dl, byte [esi + 1]
mov al, cl
cmp cl, dl
jne 0x49d330
add edi, 2
add esi, 2
test al, al
jne 0x49d308
xor eax, eax
jmp 0x49d335
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x49d34a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x1c], eax
mov dword [eax], edx
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
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 + 0x14]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp eax, ecx
jl 0x49d1df
mov ecx, dword [0xb65ccc]
xor esi, esi
cmp ecx, esi
je 0x49d39f
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [0xb65ccc], esi
mov eax, dword [0xb66110]
cmp eax, esi
je 0x49d3ab
mov dword [eax + 0x6c], esi
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x9c], esi
jle 0x49d3c7
push 1
push esi
mov dword [0xb66114], ecx
call fcn.0045a530
jmp 0x49d3cc
call fcn.0041f990
mov ecx, dword [esp + 0x30c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x308
ret