Function at 0x41d2e0
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Get socket status
Receive data
Receive data on socket
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket
Set socket configuration

Disassembly:
mov eax, 0x58f0
call fcn.00457d20
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x5900]
push edi
mov eax, dword [ebp + 4]
mov dword [esp + 0x1c], ebp
mov edi, dword [esi + 4]
mov ecx, dword [eax + 0x275f4]
mov dword [esp + 0x10], edi
cmp ecx, 1
jne 0x41de40
mov ecx, dword [esi + 0x24]
cmp ecx, 0xffffffff
je 0x41d334
mov edx, dword [eax + 0x275c8]
lea ecx, [ecx + ecx*2]
shl ecx, 6
mov eax, dword [ecx + edx + 0x44]
test eax, eax
je 0x41de40
mov ebx, dword [esp + 0x5908]
push 2
push ebx
push edi
mov ecx, ebp
mov byte [ebx + 1], 2
call fcn.0041c1d0
test eax, eax
je 0x41f033
lea eax, [esp + 0x18]
push 8
push eax
push ebx
push esi
push edi
mov ecx, ebp
mov dword [esp + 0x2c], 2
call fcn.0041c300
test eax, eax
je 0x41f033
movsx eax, byte [ebx + 1]
inc eax
cmp eax, 0xff
mov dword [esp + 0x18], eax
jg 0x41f033
test eax, eax
jl 0x41f033
mov edx, dword [esp + 0x5904]
lea ecx, [esp + 0x18]
lea esi, [ebx + 2]
push 8
push ecx
push esi
push edx
push edi
mov ecx, ebp
call fcn.0041c300
test eax, eax
je 0x41f033
mov al, byte [0x493b50]
mov ecx, 0x400
mov byte [esp + 0x18ec], al
xor eax, eax
lea edi, [esp + 0x18ed]
lea edx, [esp + 0x18ec]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
push ecx
push esi
push edx
call fcn.00458800
mov eax, dword [esp + 0x24]
mov cl, byte [0x493b50]
movsx edx, byte [ebx + 1]
mov byte [esp + eax + 0x18f7], 0
mov byte [esp + 0x8f4], cl
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x8f5]
add esp, 0xc
rep stosd dword es:[edi], eax
movsx eax, byte [edx + ebx + 2]
lea ecx, [edx + ebx]
cmp eax, 0xff
mov dword [esp + 0x18], eax
jg 0x41f033
xor esi, esi
cmp eax, esi
jl 0x41f033
jle 0x41d47d
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 8
add ecx, 3
push eax
push ecx
mov ecx, dword [esp + 0x5910]
push ecx
push edx
mov ecx, ebp
call fcn.0041c300
test eax, eax
je 0x41f033
movsx ecx, byte [ebx + 1]
mov eax, dword [esp + 0x18]
push eax
lea edx, [ecx + ebx + 3]
lea eax, [esp + 0x8ec]
push edx
push eax
call fcn.00458800
mov eax, dword [esp + 0x24]
add esp, 0xc
mov cl, byte [0x493b50]
mov byte [esp + eax + 0x8e8], 0
mov eax, dword [esp + 0x5904]
xor edx, edx
mov dword [esp + 0x4d], edx
mov byte [esp + 0x4c], cl
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x51], edx
mov dword [esp + 0x55], edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 4]
mov eax, dword [esi + 0x275c8]
test eax, eax
je 0x41dc81
mov ecx, dword [esi + 0x275cc]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x24]
cmp eax, edx
jae 0x41dc81
mov esi, dword [esi + 0x275c8]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + ecx + 0x44]
test eax, eax
je 0x41dc66
mov edx, ecx
lea eax, [esp + 0x18ec]
add esi, edx
push esi
push eax
call fcn.0045c970
add esp, 8
test eax, eax
jne 0x41dc66
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 0x275c8]
lea edi, [edx + eax + 0x10]
lea eax, [esp + 0x8e8]
mov esi, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41d562
test cl, cl
je 0x41d55e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41d562
add eax, 2
add esi, 2
test cl, cl
jne 0x41d53a
xor eax, eax
jmp 0x41d567
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41d5a3
mov esi, str._NT_USER_AUTH
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41d59a
test cl, cl
je 0x41d596
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41d59a
add eax, 2
add esi, 2
test cl, cl
jne 0x41d572
xor eax, eax
jmp 0x41d59f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41d5c2
lea eax, [esp + 0x8e8]
lea ecx, [esp + 0x18ec]
push eax
push ecx
mov ecx, ebp
call fcn.0042ab20
test eax, eax
je 0x41dc66
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 0x275c8]
mov edx, dword [eax + ecx + 0x8c]
test edx, edx
je 0x41dc66
mov edx, ecx
mov ecx, dword [eax + edx + 0xa4]
test ecx, ecx
jne 0x41dc66
mov ecx, edx
mov edx, dword [eax + ecx + 0x64]
test edx, edx
je 0x41d63c
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
mov edx, ecx
mov eax, dword [eax + edx + 0x60]
push eax
call esi
mov ebx, dword [esp + 0x30]
mov edi, eax
push ebx
call esi
cmp eax, edi
ja 0x41dc66
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0x275c8]
mov eax, dword [eax + edx + 0x5c]
push eax
call esi
push ebx
mov edi, eax
call esi
cmp eax, edi
jb 0x41dc66
jmp 0x41d640
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 0x275c8]
lea edi, [edx + eax]
mov eax, dword [edx + eax + 0x58]
test eax, eax
je 0x41d754
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41d708
lea edx, [esp + 0x20]
lea eax, [esp + 0x28]
or ecx, 0xffffffff
push edx
push eax
mov dword [esp + 0x30], ecx
mov esi, 6
push 0
push ebx
mov byte [esp + 0x5c], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], esi
call sub.iphlpapi.dll_SendARP
test eax, eax
jne 0x41d6de
cmp dword [esp + 0x20], esi
jne 0x41d6de
xor esi, esi
xor edi, edi
xor ecx, ecx
lea edx, [esp + edi + 0x4c]
mov cl, byte [esp + esi + 0x28]
push ecx
push str._02x
push edx
call fcn.00457c43
add edi, eax
mov eax, dword [esp + 0x2c]
add esp, 0xc
inc esi
dec eax
cmp esi, eax
jb 0x41d6a1
xor ecx, ecx
lea edx, [esp + edi + 0x4c]
mov cl, byte [esp + esi + 0x28]
push ecx
push str._02x
push edx
call fcn.00457c43
jmp 0x41d6f1
lea eax, [esp + 0x4e8]
lea ecx, [esp + 0x4c]
push eax
push ecx
push ebx
call fcn.00408720
mov al, byte [esp + 0x58]
add esp, 0xc
test al, al
je 0x41dc66
mov dword [esp + 0x34], 1
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 0x275c8]
lea edi, [eax + ecx]
lea eax, [esp + 0x4c]
lea esi, [edi + 0x48]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41d747
test cl, cl
je 0x41d743
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41d747
add eax, 2
add esi, 2
test cl, cl
jne 0x41d71f
xor eax, eax
jmp 0x41d74c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41dc66
test byte [edi + 0x68], 0x40
je 0x41dc66
cmp dword [edi + 0x78], 0xffffffff
je 0x41dc81
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov eax, dword [ecx + 0x275c8]
and edx, 0xffff
mov eax, dword [eax + esi + 0x78]
lea esi, [eax*8]
sub esi, eax
shl esi, 6
add esi, eax
lea esi, [eax + esi*4]
add eax, edx
lea eax, [eax + esi*4]
mov esi, dword [ecx + 0x275d8]
test byte [esi + eax*4 + 0x7038], 0x40
je 0x41dc81
mov eax, dword [ecx + 0x275c8]
mov esi, dword [esp + 0x14]
push 0x48d54c
mov eax, dword [eax + esi + 0x78]
lea esi, [eax*8]
sub esi, eax
shl esi, 6
add esi, eax
lea esi, [eax + esi*4]
lea eax, [eax + esi*4]
mov esi, edx
shl esi, 0xc
add esi, edx
lea edx, [esi + eax*4]
mov eax, dword [ecx + 0x275d8]
lea ecx, [edx + eax + 0x31]
push ecx
lea ecx, [esp + 0x38fc]
call fcn.00442a00
lea ecx, [esp + 0x38f4]
call fcn.00442ac0
test eax, eax
je 0x41dc66
lea ecx, [esp + 0x38f4]
call fcn.00442a60
mov bl, byte [0x493b50]
mov edx, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x99]
mov byte [esp + 0x98], bl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x1a1]
mov byte [esp + 0x1a0], bl
lea ebx, [esp + 0x98]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x98]
test al, al
je 0x41d9df
mov al, byte [0x48d1cc]
test al, al
je 0x41d9df
mov edi, 0x48d1cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x98]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
ja 0x41d9df
mov al, byte [esp + 0x98]
test al, al
je 0x41d9df
mov edi, 0x48d1cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x98]
push ecx
push eax
push 0x48d1cc
call fcn.00458090
add esp, 0xc
test eax, eax
jne 0x41d944
mov edi, 0x48d1cc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 1
sub edx, ecx
lea edi, [esp + 0x98]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x48d1cc
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + ecx + 0x9c]
lea ecx, [esp + 0x9c]
push eax
push ecx
call fcn.00457d50
add esp, 0xc
jmp 0x41d8bc
mov al, byte [esp + 0x98]
test al, al
je 0x41d9df
mov edi, 0x48d1cc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x98]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x48d1cc
add edx, ecx
mov cl, byte [esi]
mov bl, byte [edx]
mov al, cl
cmp cl, bl
jne 0x41d9a9
test al, al
je 0x41d9a5
mov cl, byte [esi + 1]
mov bl, byte [edx + 1]
mov al, cl
cmp cl, bl
jne 0x41d9a9
add esi, 2
add edx, 2
test al, al
jne 0x41d981
xor eax, eax
jmp 0x41d9ae
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41d9df
mov edi, 0x48d1cc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x98]
sub edx, ecx
lea edi, [esp + 0x98]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [edx + ecx], al
jmp 0x41d944
lea eax, [esp + 0x98]
push 0x48d1a8
push eax
call fcn.00457ca0
add esp, 8
test eax, eax
je 0x41db8d
mov byte [eax], 0
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1a0]
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]
mov al, byte [esp + 0x1a0]
test al, al
je 0x41db8d
mov al, byte [0x48d1cc]
test al, al
je 0x41db8d
mov edi, 0x48d1cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1a0]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
ja 0x41db8d
mov al, byte [esp + 0x1a0]
test al, al
je 0x41db8d
mov edi, 0x48d1cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1a0]
push ecx
push eax
push 0x48d1cc
call fcn.00458090
add esp, 0xc
test eax, eax
jne 0x41daf2
mov edi, 0x48d1cc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 1
sub edx, ecx
lea edi, [esp + 0x1a0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x48d1cc
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + ecx + 0x1a4]
lea ecx, [esp + 0x1a4]
push eax
push ecx
call fcn.00457d50
add esp, 0xc
jmp 0x41da6a
mov al, byte [esp + 0x1a0]
test al, al
je 0x41db8d
mov edi, 0x48d1cc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1a0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1a0]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x48d1cc
add edx, ecx
mov cl, byte [esi]
mov bl, byte [edx]
mov al, cl
cmp cl, bl
jne 0x41db57
test al, al
je 0x41db53
mov cl, byte [esi + 1]
mov bl, byte [edx + 1]
mov al, cl
cmp cl, bl
jne 0x41db57
add esi, 2
add edx, 2
test al, al
jne 0x41db2f
xor eax, eax
jmp 0x41db5c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41db8d
mov edi, 0x48d1cc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x1a0]
sub edx, ecx
lea edi, [esp + 0x1a0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [edx + ecx], al
jmp 0x41daf2
mov al, byte [0x493b50]
mov edx, dword [esp + 0x44]
mov byte [esp + 0x2a8], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2a9]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x46]
and edx, 0xffff
and ecx, 0xffff
lea eax, [esp + 0x2a8]
push ecx
push edx
push str._02d:_02d
push eax
call fcn.00457c43
add esp, 0x10
lea esi, [esp + 0x2a8]
lea eax, [esp + 0x98]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41dc0a
test cl, cl
je 0x41dc06
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41dc0a
add eax, 2
add esi, 2
test cl, cl
jne 0x41dbe2
xor eax, eax
jmp 0x41dc0f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jg 0x41dc52
lea esi, [esp + 0x1a0]
lea eax, [esp + 0x2a8]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41dc49
test cl, cl
je 0x41dc45
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41dc49
add eax, 2
add esi, 2
test cl, cl
jne 0x41dc21
xor eax, eax
jmp 0x41dc4e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jle 0x41dc81
lea ecx, [esp + 0x38f4]
call fcn.00442ac0
test eax, eax
jne 0x41d814
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
inc ecx
add eax, 0xc0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
jmp 0x41d4b7
mov esi, dword [ebp + 4]
mov eax, dword [esi + 0x275c8]
test eax, eax
jne 0x41dc92
xor edx, edx
jmp 0x41dcab
mov ecx, dword [esi + 0x275cc]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, dword [esp + 0x24]
cmp edi, edx
jne 0x41dd73
mov eax, dword [esi + 0x275fc]
test eax, eax
je 0x41dd4c
lea ecx, [esp + 0x8e8]
lea edx, [esp + 0x18ec]
push ecx
push edx
mov ecx, ebp
call fcn.0042ab20
test eax, eax
je 0x41dd25
mov ebx, dword [esp + 0x5904]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x18ec]
add ecx, 0x27600
push eax
push ebx
call fcn.00442530
mov eax, dword [esp + 0x5908]
mov ecx, dword [esp + 0x10]
push 2
push eax
push ecx
mov ecx, ebp
mov byte [eax + 1], 0
call fcn.0041c1d0
test eax, eax
je 0x41f033
jmp 0x41ddc4
mov eax, dword [esp + 0x5908]
mov edx, dword [esp + 0x10]
push 2
push eax
push edx
mov ecx, ebp
mov byte [eax + 1], 1
call fcn.0041c1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
mov eax, dword [esp + 0x5908]
push 2
push eax
mov ecx, ebp
mov byte [eax + 1], 1
mov eax, dword [esp + 0x18]
push eax
call fcn.0041c1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
mov eax, dword [esp + 0x5908]
mov ecx, dword [esp + 0x10]
push 2
push eax
push ecx
mov ecx, ebp
mov byte [eax + 1], 0
call fcn.0041c1d0
test eax, eax
je 0x41f033
mov ebx, dword [esp + 0x5904]
mov ecx, dword [ebp + 4]
push edi
push ebx
add ecx, 0x27600
call fcn.00442510
mov ecx, dword [ebp + 4]
add ecx, 0x27600
call fcn.004420c0
cmp dword [ebx + 0x1c], 2
jne 0x41f033
mov eax, dword [ebx]
mov ecx, 0x4e
mov esi, ebx
lea edi, [esp + 0x3b0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x3b0]
push edx
push eax
add ecx, 0x27600
mov dword [esp + 0x3d4], 1
call fcn.004425b0
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 4]
push ecx
mov ecx, dword [ebp + 4]
push edx
push eax
add ecx, 0x241e0
call fcn.00408990
test eax, eax
jne 0x41f033
mov edx, dword [ebx]
lea ecx, [esp + 0x3b0]
push ecx
mov ecx, dword [ebp + 4]
push edx
add ecx, 0x27600
mov dword [esp + 0x3d4], 2
call fcn.004425b0
jmp 0x41de9c
mov ebx, dword [esp + 0x5908]
xor eax, eax
movsx ecx, byte [ebx + 1]
test ecx, ecx
jle 0x41de62
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x41e058
inc eax
cmp eax, ecx
jl 0x41de51
xor eax, eax
test ecx, ecx
jle 0x41de7a
lea esi, [ebx + 2]
cmp byte [esi + eax], 2
je 0x41df02
inc eax
cmp eax, ecx
jl 0x41de6b
mov ecx, dword [esp + 0x10]
push 2
push ebx
push ecx
mov ecx, ebp
mov byte [ebx + 1], 0
call fcn.0041c1d0
test eax, eax
je 0x41f033
mov ebx, dword [esp + 0x5904]
mov dl, byte [0x493b50]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x28f1]
mov byte [esp + 0x28f0], dl
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x41e078
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.WS2_32.dll_inet_ntoa]
lea eax, [eax + eax*2]
mov edx, dword [edx + 4]
shl eax, 6
mov edx, dword [edx + 0x275c8]
add eax, edx
push eax
push ecx
call ebp
push eax
lea ecx, [esp + 0x28f8]
push str._s__s_SOCKS5
push ecx
call fcn.00457c43
add esp, 0x10
jmp 0x41e0d0
mov edi, dword [esp + 0x10]
push 2
push ebx
push edi
mov ecx, ebp
mov byte [ebx], 5
mov byte [ebx + 1], 2
call fcn.0041c1d0
test eax, eax
je 0x41f033
mov edx, dword [esp + 0x5904]
lea ecx, [esp + 0x18]
push 8
push ecx
push ebx
push edx
push edi
mov ecx, ebp
mov dword [esp + 0x2c], 2
call fcn.0041c300
test eax, eax
je 0x41f033
movsx eax, byte [ebx + 1]
inc eax
cmp eax, 0xff
mov dword [esp + 0x18], eax
jg 0x41f033
test eax, eax
jl 0x41f033
mov ecx, dword [esp + 0x5904]
lea eax, [esp + 0x18]
push 8
push eax
push esi
push ecx
push edi
mov ecx, ebp
call fcn.0041c300
test eax, eax
je 0x41f033
mov dl, byte [0x493b50]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x8e9]
mov byte [esp + 0x8e8], dl
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x8e8]
push eax
push esi
push ecx
call fcn.00458800
movsx eax, byte [ebx + 1]
mov edx, dword [esp + 0x24]
add eax, ebx
add esp, 0xc
mov byte [esp + edx + 0x8e7], 0
movsx edx, byte [eax + 2]
cmp edx, 0xff
mov dword [esp + 0x18], edx
jg 0x41f033
test edx, edx
jl 0x41f033
jle 0x41e012
mov edx, dword [esp + 0x5904]
lea ecx, [esp + 0x18]
push 8
add eax, 3
push ecx
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
mov ecx, ebp
call fcn.0041c300
test eax, eax
je 0x41f033
mov edx, dword [esp + 0x18]
mov cl, byte [0x493b50]
push edx
movsx edx, byte [ebx + 1]
mov byte [esp + 0x18f0], cl
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x18f1]
rep stosd dword es:[edi], eax
lea eax, [edx + ebx + 3]
lea ecx, [esp + 0x18f0]
push eax
push ecx
call fcn.00458800
mov edx, dword [esp + 0x24]
add esp, 0xc
mov byte [ebx], 5
mov byte [esp + edx + 0x18ec], 0
mov eax, dword [esp + 0x10]
push 2
push ebx
push eax
mov ecx, ebp
mov byte [ebx + 1], 0
call fcn.0041c1d0
test eax, eax
je 0x41f033
jmp 0x41de95
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x275fc]
test eax, eax
je 0x41e0b1
mov dl, byte [ebx + 0x28]
lea eax, [ebx + 0x28]
test dl, dl
je 0x41e0b1
mov ebp, dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push ecx
call ebp
push eax
lea eax, [esp + 0x28f8]
push str._s__s_SOCKS5
push eax
call fcn.00457c43
add esp, 0x10
jmp 0x41e0d0
mov ebp, dword [sym.imp.WS2_32.dll_inet_ntoa]
push ecx
call ebp
push eax
lea ecx, [esp + 0x28f4]
push str._s_unknown_SOCKS5
push ecx
call fcn.00457c43
add esp, 0xc
mov esi, dword [esp + 0x5908]
mov ebx, dword [esp + 0x5904]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x94]
push 8
push edx
push esi
push ebx
push eax
mov ecx, edi
mov dword [esp + 0xa8], 0xa
call fcn.0041c300
test eax, eax
je 0x41f033
mov al, byte [esi]
cmp al, 5
jne 0x41f033
cmp byte [esi + 1], 3
jne 0x41e850
cmp byte [esi + 3], 1
jne 0x41e850
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0xb9d4]
test eax, eax
je 0x41f033
mov cx, word [esi + 8]
xor edx, edx
mov dword [esp + 0x70], edx
mov eax, ebx
mov bl, byte [0x493b50]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov word [esp + 0x72], cx
mov dword [esp + 0x7c], edx
mov edx, dword [eax + 0x10]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x8e9]
mov byte [esp + 0x8e8], bl
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x18ed]
mov byte [esp + 0x18ec], bl
push edx
rep stosd dword es:[edi], eax
mov word [esp + 0x74], 2
mov dword [esp + 0x78], edx
call ebp
test eax, eax
je 0x41e1c6
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18ec]
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]
mov ecx, dword [esp + 0x72]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
and eax, 0xffff
lea edx, [esp + 0x18ec]
push eax
push edx
lea eax, [esp + 0x8f0]
push str.UDP__s:_d
push eax
call fcn.00457c43
lea edi, [esp + 0x8f8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2900]
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 eax, [esp + 0x2900]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00430470
mov edi, dword [esp + 0x5918]
mov ebx, dword [esp + 0x30]
add esp, 0x14
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x41e335
mov edx, dword [ebx + 4]
lea ecx, [eax + eax*2]
shl ecx, 6
mov eax, dword [edx + 0x275c8]
mov eax, dword [ecx + eax + 0x74]
cmp eax, 0xffffffff
je 0x41e335
mov ecx, eax
shl ecx, 8
add ecx, eax
lea ecx, [eax + ecx*2]
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*2]
mov ecx, dword [edx + 0x275e8]
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 0x303c]
test ecx, ecx
je 0x41e335
cmp dword [eax + 0x3048], 1
jne 0x41e335
mov ecx, dword [eax + 0x1034]
test ecx, ecx
jne 0x41e2a8
lea ecx, [eax + 0x31]
lea edx, [esp + 0x8ec]
push ecx
push edx
mov ecx, ebx
call fcn.00426140
test eax, eax
je 0x41e335
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x1cb0]
test edx, edx
jne 0x41e30e
mov esi, dword [esp + 0x5908]
lea ecx, [esp + 0x18ec]
add eax, 0x18b0
push ecx
push eax
push esi
call fcn.00457c43
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
dec ecx
push ecx
push esi
push edx
mov ecx, ebx
call fcn.0041c1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
push ecx
push edx
push eax
mov ecx, ebx
call fcn.0041c1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
xor ebp, ebp
push 1
push ebp
push ebp
push ebp
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [ebx + 4]
push eax
push edi
add ecx, 0x27600
call fcn.00442570
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0x6c]
push 4
push ecx
push 0x20
push 0xffff
push edx
mov dword [esp + 0x80], 1
call esi
mov ecx, dword [edi + 8]
lea eax, [esp + 0x34]
push 4
push eax
push 0x1001
push 0xffff
push ecx
mov dword [esp + 0x48], 0x1000
call esi
mov eax, dword [edi + 8]
lea edx, [esp + 0x34]
push 4
push edx
push 0x1002
push 0xffff
push eax
call esi
mov edx, dword [edi + 8]
lea ecx, [esp + 0x3c]
push 0x10
push ecx
push edx
mov word [esp + 0x4a], bp
mov word [esp + 0x48], 2
mov dword [esp + 0x4c], ebp
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x41f033
mov ebp, dword [esp + 0x5908]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.WS2_32.dll_getsockname]
lea ecx, [esp + 0x3c]
mov byte [ebp + 1], al
mov byte [ebp + 2], al
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x10
push eax
push ecx
push edx
mov byte [ebp + 3], 1
call esi
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x20]
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
lea edx, [esp + 0x3c]
push ecx
push edx
push eax
call esi
mov cx, word [esp + 0x3e]
mov edx, dword [esp + 0x10]
push 0xa
mov word [ebp + 8], cx
push ebp
push edx
mov ecx, ebx
call fcn.0041c1d0
test eax, eax
je 0x41f033
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x410c]
test ecx, ecx
jne 0x41e7fc
mov ecx, dword [eax + 0x511c]
test ecx, ecx
jne 0x41e7fc
mov ecx, dword [esp + 0x5904]
xor edx, edx
mov dword [esp + 0x5c], edx
xor eax, eax
mov esi, dword [ecx + 0x1c]
mov ebx, dword [ecx + 8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x64], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], edx
mov edx, 2
cmp esi, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x5c], dx
jne 0x41f033
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
jmp 0x41e4c3
mov edx, 2
xor eax, eax
cmp dword [edi + 8], eax
je 0x41f033
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], 1
lea ecx, [esp + 0x9c]
cmp dword [ecx], esi
je 0x41e4f2
inc eax
add ecx, 4
cmp eax, 1
jb 0x41e4e5
cmp eax, 1
jne 0x41e505
mov dword [esp + 0xa0], esi
mov dword [esp + 0x98], edx
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x98]
push eax
push 0
push 0
push ecx
push 0x40
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x41e54a
mov edx, dword [edi + 4]
mov eax, dword [edx + 0xa9b8]
cmp eax, 0xffffffff
je 0x41e79e
mov ecx, dword [esp + 0x30]
inc ecx
cmp ecx, eax
mov dword [esp + 0x30], ecx
jg 0x41f033
jmp 0x41e79e
test eax, eax
mov dword [esp + 0x30], 0
jl 0x41f033
lea eax, [esp + 0x98]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41e78c
mov eax, 0xff6
push 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
push 0
lea edx, [esp + 0x8c]
push ecx
lea eax, [esp + 0x8c]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x40]
push 1
lea esi, [ebp + 0xa]
push edx
push ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0xa4], 0
mov dword [esp + 0x5c], 0x10
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x41e7bc
push eax
mov eax, dword [esp + 0x30]
push eax
mov ecx, edi
call fcn.00419520
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
mov dx, word [esp + 0x72]
cmp ecx, eax
mov ax, word [esp + 0x86]
jne 0x41e5fd
cmp ax, dx
je 0x41e623
cmp byte [esi], 0
jne 0x41e72b
cmp byte [ebp + 0xb], 0
jne 0x41e72b
cmp byte [ebp + 0xc], 0
jne 0x41e72b
cmp ax, dx
jne 0x41e72b
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], esi
cmp ecx, 0xa
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
jbe 0x41e6f4
cmp byte [esi], 0
jne 0x41e6f4
mov al, byte [ebp + 0xb]
test al, al
jne 0x41e6f4
mov al, byte [ebp + 0xd]
cmp al, 1
jne 0x41e67b
mov edx, dword [ebp + 0xe]
mov ax, word [ebp + 0x12]
mov dword [esp + 0x60], edx
mov word [esp + 0x5e], ax
lea edx, [ebp + 0x14]
lea eax, [ecx - 0xa]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
jmp 0x41e6f4
cmp al, 3
jne 0x41e6f4
movsx eax, byte [ebp + 0xe]
lea edx, [eax + 7]
cmp ecx, edx
jbe 0x41e6f4
mov ecx, eax
lea esi, [ebp + 0xf]
mov edx, ecx
lea edi, [esp + 0x4e8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x4e8], 0
lea eax, [esp + 0x4e8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41e6f0
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movsx ecx, byte [ebp + 0xe]
mov eax, dword [edx]
mov dword [esp + 0x60], eax
mov dx, word [ecx + ebp + 0xf]
lea eax, [ecx + ebp + 0x11]
mov word [esp + 0x5e], dx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
sub eax, 7
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x1c]
push 0
push 0
lea ecx, [esp + 0x64]
push 0x10
push ecx
lea edx, [esp + 0x34]
push 0
push edx
lea eax, [esp + 0x40]
push 1
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, edi
call fcn.00419520
mov esi, dword [esp + 0x10]
jmp 0x41e79e
mov word [ebp + 8], ax
mov eax, dword [esp + 0x14]
mov dword [ebp + 4], ecx
push 0
push 0
lea ecx, [esp + 0x78]
add eax, 0xa
push 0x10
push ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
push 0
push edx
lea eax, [esp + 0x40]
push 1
push eax
push ebx
mov byte [ebp], 0
mov byte [ebp + 1], 0
mov byte [ebp + 2], 0
mov byte [ebp + 3], 1
mov dword [esp + 0x50], ebp
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, edi
call fcn.00419520
mov esi, dword [esp + 0x10]
jmp 0x41e79e
lea eax, [esp + 0x98]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41e7cf
mov ecx, dword [esp + 0x5904]
cmp dword [ecx + 0x1c], 2
je 0x41e4bc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
mov eax, dword [esp + 0x5904]
lea edx, [esp + 0x20]
push 0
push edx
push ebp
push eax
push esi
mov ecx, edi
mov dword [esp + 0x34], 0x1000
call fcn.0041c300
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [esp + 0x70]
sub esp, 0x10
mov ecx, esp
mov esi, eax
mov eax, dword [esp + 0x84]
push esi
mov dword [ecx], edx
mov edx, dword [esp + 0x8c]
push edi
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x94]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebx
call fcn.0041cbc0
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
cmp al, 5
jne 0x41f033
cmp byte [esi + 1], 1
jne 0x41ec0e
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [edi + 4]
push eax
push ebx
add ecx, 0x27600
call fcn.00442570
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x41e8ae
mov ecx, dword [esp + 0x10]
push 0xa
push esi
push ecx
mov ecx, edi
mov byte [esi + 1], 1
call fcn.0041c1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
mov dl, byte [0x493b50]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x4e9]
mov byte [esp + 0x4e8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esi + 3]
cmp al, 1
jne 0x41e8e6
mov ax, word [esi + 8]
mov word [esp + 0x86], ax
jmp 0x41e967
cmp al, 3
jne 0x41e967
movsx ebx, byte [esi + 4]
lea eax, [ebx - 3]
test eax, eax
mov dword [esp + 0x38], eax
jle 0x41e924
mov edx, dword [esp + 0x5904]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push 8
add esi, 0xa
push ecx
mov ecx, dword [esp + 0x24]
push esi
push edx
push eax
call fcn.0041c300
test eax, eax
je 0x41f033
jmp 0x41e92a
jl 0x41f033
mov eax, dword [esp + 0x5908]
mov ecx, ebx
mov edx, ecx
lea edi, [esp + 0x4e8]
lea esi, [eax + 5]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x5908]
mov byte [esp + ebx + 0x4e8], 0
mov ax, word [ebx + eax + 5]
mov word [esp + 0x86], ax
mov cl, byte [0x493b50]
xor eax, eax
mov byte [esp + 0x8e8], cl
mov ecx, 0x400
lea edi, [esp + 0x8e9]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x4e8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x41e9c9
mov edx, dword [esi + 4]
push edx
call ebp
test eax, eax
je 0x41f033
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4e8]
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]
mov ebx, dword [esp + 0x86]
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
push ebx
call ebp
and eax, 0xffff
lea ecx, [esp + 0x4e8]
push eax
push ecx
lea edx, [esp + 0x8f0]
push str.CONNECT__s:_d
push edx
call fcn.00457c43
lea edi, [esp + 0x8f8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2900]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
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 eax, [esp + 0x2900]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00430470
mov edi, str.CONNECT
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, dword [esp + 0x1c]
lea edi, [esp + ecx + 0x8e8]
mov ecx, dword [esp + 0x5904]
mov eax, dword [ecx + 0x24]
cmp eax, 0xffffffff
je 0x41eb4c
mov edx, dword [esi + 4]
lea eax, [eax + eax*2]
shl eax, 6
mov ecx, dword [edx + 0x275c8]
mov eax, dword [eax + ecx + 0x74]
cmp eax, 0xffffffff
je 0x41eb4c
mov ecx, eax
shl ecx, 8
add ecx, eax
lea ecx, [eax + ecx*2]
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*2]
mov ecx, dword [edx + 0x275e8]
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 0x303c]
test ecx, ecx
je 0x41eb4c
cmp dword [eax + 0x3048], 1
jne 0x41eb4c
mov ecx, dword [eax + 0x1034]
test ecx, ecx
jne 0x41eac6
lea ecx, [eax + 0x31]
push ecx
push edi
mov ecx, esi
call fcn.00426140
test eax, eax
je 0x41eb4c
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x1cb0]
test edx, edx
jne 0x41eb25
mov ebx, dword [esp + 0x5908]
lea edx, [esp + 0x4e8]
add eax, 0x18b0
push edx
push eax
push ebx
call fcn.00457c43
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
push ecx
push ebx
push eax
mov ecx, esi
call fcn.0041c1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
mov ecx, esi
call fcn.0041c1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
push 1
push ebx
call ebp
mov edi, dword [esp + 0x5908]
and eax, 0xffff
lea edx, [esp + 0x4ec]
push eax
mov eax, dword [edi + 8]
push edx
push edi
push eax
mov ecx, esi
call fcn.00425b50
test eax, eax
jne 0x41eb9d
mov eax, dword [esp + 0x5908]
mov ecx, dword [esp + 0x10]
push 0xa
push eax
push ecx
mov ecx, esi
mov byte [eax + 1], 1
call fcn.0041c1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
mov ecx, dword [edi + 8]
lea edx, [esp + 0x6c]
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
mov word [esp + 0x48], 2
mov dword [esp + 0x78], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [esp + 0x5908]
mov cx, word [esp + 0x3e]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
push 0xa
mov word [eax + 8], cx
push eax
push ebx
mov ecx, esi
mov byte [eax + 1], 0
mov byte [eax + 2], 0
mov byte [eax + 3], 1
mov dword [eax + 4], edx
call fcn.0041c1d0
mov edx, dword [edi + 8]
push 0
push ebx
push edx
push edi
mov ecx, esi
call fcn.00423a00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
cmp al, 5
jne 0x41f033
cmp byte [esi + 1], 2
jne 0x41f033
mov al, byte [esi + 3]
cmp al, 1
jne 0x41ed71
mov eax, dword [esi + 4]
mov cx, word [esi + 8]
mov dword [esp + 0x60], eax
mov word [esp + 0x5e], cx
mov dl, byte [0x493b50]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x18ed]
mov byte [esp + 0x18ec], dl
mov byte [esp + 0x8e8], dl
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x8e9]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x60]
push eax
call ebp
test eax, eax
je 0x41ec9e
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x8e8]
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]
mov ecx, dword [esp + 0x5e]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
and eax, 0xffff
lea edx, [esp + 0x8e8]
push eax
push edx
lea eax, [esp + 0x18f4]
push str.BIND__s:_d
push eax
call fcn.00457c43
lea edi, [esp + 0x18fc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2900]
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 eax, [esp + 0x2900]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00430470
add esp, 0x14
xor ebx, ebx
mov dword [esp + 0x20], ebx
push 1
push ebx
push ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x5904]
push eax
push edi
mov ecx, dword [ebp + 4]
add ecx, 0x27600
call fcn.00442570
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x41ee37
mov eax, dword [esp + 0x5908]
mov ecx, dword [esp + 0x10]
push 0xa
push eax
push ecx
mov ecx, ebp
mov byte [eax + 1], 1
call fcn.0041c1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
cmp al, 3
jne 0x41ec3b
movsx ebx, byte [esi + 4]
lea eax, [ebx - 3]
test eax, eax
mov dword [esp + 0x38], eax
jle 0x41edb3
mov eax, dword [esp + 0x5904]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
push 8
add esi, 0xa
push edx
push esi
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0041c300
test eax, eax
je 0x41f033
jmp 0x41edb9
jl 0x41f033
mov eax, dword [esp + 0x5908]
mov ecx, ebx
mov edx, ecx
lea edi, [esp + 0x4e8]
lea esi, [eax + 5]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + ebx + 0x4e8], 0
mov ax, word [ebx + eax + 5]
lea ecx, [esp + 0x4e8]
mov word [esp + 0x5e], ax
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41ee0e
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x60], ecx
jmp 0x41ec3b
mov eax, dword [esp + 0x5908]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push 0xa
push eax
push edx
mov byte [eax + 1], 1
call fcn.0041c1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
mov eax, dword [edi + 8]
lea edx, [esp + 0x3c]
push 0x10
push edx
push eax
mov word [esp + 0x4a], bx
mov word [esp + 0x48], 2
mov dword [esp + 0x4c], ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x41f033
mov ecx, dword [edi + 8]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
mov ecx, dword [edi + 8]
lea edx, [esp + 0x20]
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov edx, dword [ebp + 4]
mov ebx, dword [esp + 0x5908]
mov esi, dword [esp + 0x10]
push 0xa
mov eax, dword [edx + 0xa98c]
push ebx
mov dword [esp + 0x48], eax
mov dword [ebx + 4], eax
mov ax, word [esp + 0x46]
push esi
mov ecx, ebp
mov byte [ebx + 1], 0
mov byte [ebx + 2], 0
mov byte [ebx + 3], 1
mov word [ebx + 8], ax
call fcn.0041c1d0
test eax, eax
je 0x41f033
xor eax, eax
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], eax
cmp dword [edi + 0x1c], 2
jne 0x41f033
mov eax, dword [ebp + 8]
test eax, eax
je 0x41f033
mov ecx, dword [edi + 8]
mov dword [esp + 0x98], 1
mov dword [esp + 0x9c], ecx
xor eax, eax
lea ecx, [esp + 0x9c]
cmp dword [ecx], esi
je 0x41ef1d
inc eax
add ecx, 4
cmp eax, 1
jb 0x41ef10
cmp eax, 1
jne 0x41ef34
mov dword [esp + 0xa0], esi
mov dword [esp + 0x98], 2
lea edx, [esp + 0x4c]
lea eax, [esp + 0x98]
push edx
push 0
push 0
push eax
push 0x40
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x41ef72
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0xa9b8]
cmp eax, 0xffffffff
je 0x41efad
mov ecx, dword [esp + 0x30]
inc ecx
cmp ecx, eax
mov dword [esp + 0x30], ecx
jg 0x41f033
jmp 0x41efad
test eax, eax
mov dword [esp + 0x30], 0
jl 0x41f033
mov eax, dword [edi + 8]
lea edx, [esp + 0x98]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41efc4
lea ecx, [esp + 0x98]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41f033
cmp dword [edi + 0x1c], 2
je 0x41eee7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
mov eax, dword [edi + 8]
lea edx, [esp + 0x84]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0x10
call fcn.0041c850
mov esi, eax
test esi, esi
je 0x41f033
mov ecx, dword [esp + 0x88]
mov dx, word [esp + 0x86]
mov byte [ebx], 5
mov byte [ebx + 1], 0
mov byte [ebx + 2], 0
mov byte [ebx + 3], 1
mov dword [ebx + 4], ecx
mov word [ebx + 8], dx
mov eax, dword [edi + 4]
push 0xa
push ebx
push eax
mov ecx, ebp
call fcn.0041c1d0
test eax, eax
je 0x41f02c
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
push edi
mov ecx, ebp
call fcn.00423a00
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8