Function at 0x41d7b0
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.00458680
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 + 0x36504]
mov dword [esp + 0x10], edi
cmp ecx, 1
jne 0x41e33d
mov edx, dword [esi + 0x24]
cmp edx, 0xffffffff
je 0x41d810
lea ecx, [edx*8]
mov eax, dword [eax + 0x364d8]
sub ecx, edx
lea ecx, [ecx + ecx*2]
lea edx, [edx + ecx*8]
mov ecx, dword [eax + edx*4 + 0x134]
test ecx, ecx
je 0x41e33d
mov ebx, dword [esp + 0x5908]
push 2
push ebx
push edi
mov ecx, ebp
mov byte [ebx + 1], 2
call fcn.0041c6a0
test eax, eax
je 0x41f534
lea ecx, [esp + 0x18]
push 8
push ecx
push ebx
push esi
push edi
mov ecx, ebp
mov dword [esp + 0x2c], 2
call fcn.0041c7d0
test eax, eax
je 0x41f534
movsx eax, byte [ebx + 1]
inc eax
cmp eax, 0xff
mov dword [esp + 0x18], eax
jg 0x41f534
test eax, eax
jl 0x41f534
mov eax, dword [esp + 0x5904]
lea edx, [esp + 0x18]
lea esi, [ebx + 2]
push 8
push edx
push esi
push eax
push edi
mov ecx, ebp
call fcn.0041c7d0
test eax, eax
je 0x41f534
mov cl, byte [0x494b70]
mov edx, dword [esp + 0x18]
mov byte [esp + 0x18ec], cl
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x18ed]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x18f0]
push esi
push eax
call fcn.00459160
mov ecx, dword [esp + 0x24]
mov dl, byte [0x494b70]
xor eax, eax
lea edi, [esp + 0x8f5]
mov byte [esp + ecx + 0x18f7], 0
mov ecx, 0x400
mov byte [esp + 0x8f4], dl
add esp, 0xc
rep stosd dword es:[edi], eax
movsx eax, byte [ebx + 1]
lea ecx, [eax + ebx]
movsx eax, byte [eax + ebx + 2]
cmp eax, 0xff
mov dword [esp + 0x18], eax
jg 0x41f534
xor esi, esi
cmp eax, esi
jl 0x41f534
jle 0x41d95a
mov eax, dword [esp + 0x5904]
lea edx, [esp + 0x18]
push 8
add ecx, 3
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, ebp
call fcn.0041c7d0
test eax, eax
je 0x41f534
movsx eax, byte [ebx + 1]
mov edx, dword [esp + 0x18]
push edx
lea ecx, [eax + ebx + 3]
lea edx, [esp + 0x8ec]
push ecx
push edx
call fcn.00459160
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x5904]
mov byte [esp + eax + 0x8e8], 0
mov al, byte [0x494b70]
xor ecx, ecx
mov dword [esp + 0x4d], ecx
mov byte [esp + 0x4c], al
mov eax, dword [edx + 0x10]
mov dword [esp + 0x51], ecx
mov dword [esp + 0x55], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 4]
mov eax, dword [esi + 0x364d8]
test eax, eax
je 0x41e17e
mov ecx, dword [esi + 0x364dc]
sub ecx, eax
mov eax, 0x60f25deb
imul ecx
mov eax, dword [esp + 0x24]
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp eax, edx
jae 0x41e17e
mov esi, dword [esi + 0x364d8]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + edx + 0x134]
test eax, eax
je 0x41e163
mov eax, edx
lea ecx, [esp + 0x18ec]
add esi, eax
push esi
push ecx
call fcn.0045d2f0
add esp, 8
test eax, eax
jne 0x41e163
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 0x364d8]
lea edi, [eax + ecx + 0x101]
lea eax, [esp + 0x8e8]
mov esi, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41da44
test cl, cl
je 0x41da40
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41da44
add eax, 2
add esi, 2
test cl, cl
jne 0x41da1c
xor eax, eax
jmp 0x41da49
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41da85
mov esi, str._NT_USER_AUTH
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41da7c
test cl, cl
je 0x41da78
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41da7c
add eax, 2
add esi, 2
test cl, cl
jne 0x41da54
xor eax, eax
jmp 0x41da81
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41daa4
lea eax, [esp + 0x8e8]
lea ecx, [esp + 0x18ec]
push eax
push ecx
mov ecx, ebp
call fcn.0042b260
test eax, eax
je 0x41e163
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 0x364d8]
mov edx, dword [eax + ecx + 0x17c]
test edx, edx
je 0x41e163
mov edx, ecx
mov ecx, dword [eax + edx + 0x288]
test ecx, ecx
jne 0x41e163
mov ecx, edx
mov edx, dword [eax + ecx + 0x154]
test edx, edx
je 0x41db27
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
mov edx, ecx
mov eax, dword [eax + edx + 0x150]
push eax
call esi
mov ebx, dword [esp + 0x30]
mov edi, eax
push ebx
call esi
cmp eax, edi
ja 0x41e163
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0x364d8]
mov eax, dword [eax + edx + 0x14c]
push eax
call esi
push ebx
mov edi, eax
call esi
cmp eax, edi
jb 0x41e163
jmp 0x41db2b
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 0x364d8]
lea edi, [edx + eax]
mov eax, dword [edx + eax + 0x148]
test eax, eax
je 0x41dc45
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41dbf6
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 0x41dbcc
cmp dword [esp + 0x20], esi
jne 0x41dbcc
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.004585a3
add edi, eax
mov eax, dword [esp + 0x2c]
add esp, 0xc
inc esi
dec eax
cmp esi, eax
jb 0x41db8f
xor ecx, ecx
lea edx, [esp + edi + 0x4c]
mov cl, byte [esp + esi + 0x28]
push ecx
push str._02x
push edx
call fcn.004585a3
jmp 0x41dbdf
lea eax, [esp + 0x4e8]
lea ecx, [esp + 0x4c]
push eax
push ecx
push ebx
call fcn.00408a50
mov al, byte [esp + 0x58]
add esp, 0xc
test al, al
je 0x41e163
mov dword [esp + 0x34], 1
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 0x364d8]
lea edi, [eax + ecx]
lea eax, [esp + 0x4c]
lea esi, [edi + 0x138]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41dc38
test cl, cl
je 0x41dc34
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41dc38
add eax, 2
add esi, 2
test cl, cl
jne 0x41dc10
xor eax, eax
jmp 0x41dc3d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41e163
test byte [edi + 0x158], 0x40
je 0x41e163
cmp dword [edi + 0x168], 0xffffffff
je 0x41e17e
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 + 0x364d8]
and edx, 0xffff
mov eax, dword [eax + esi + 0x168]
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 + 0x364e8]
test byte [esi + eax*4 + 0x7038], 0x40
je 0x41e17e
mov eax, dword [ecx + 0x364d8]
mov esi, dword [esp + 0x14]
push 0x48e54c
mov eax, dword [eax + esi + 0x168]
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 + 0x364e8]
lea ecx, [edx + eax + 0x31]
push ecx
lea ecx, [esp + 0x38fc]
call fcn.00443360
lea ecx, [esp + 0x38f4]
call fcn.00443420
test eax, eax
je 0x41e163
lea ecx, [esp + 0x38f4]
call fcn.004433c0
mov bl, byte [0x494b70]
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 0x41dedc
mov al, byte [0x48e1cc]
test al, al
je 0x41dedc
mov edi, 0x48e1cc
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 0x41dedc
mov al, byte [esp + 0x98]
test al, al
je 0x41dedc
mov edi, 0x48e1cc
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 0x48e1cc
call fcn.004589f0
add esp, 0xc
test eax, eax
jne 0x41de41
mov edi, 0x48e1cc
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, 0x48e1cc
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.004586b0
add esp, 0xc
jmp 0x41ddb9
mov al, byte [esp + 0x98]
test al, al
je 0x41dedc
mov edi, 0x48e1cc
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, 0x48e1cc
add edx, ecx
mov cl, byte [esi]
mov bl, byte [edx]
mov al, cl
cmp cl, bl
jne 0x41dea6
test al, al
je 0x41dea2
mov cl, byte [esi + 1]
mov bl, byte [edx + 1]
mov al, cl
cmp cl, bl
jne 0x41dea6
add esi, 2
add edx, 2
test al, al
jne 0x41de7e
xor eax, eax
jmp 0x41deab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41dedc
mov edi, 0x48e1cc
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 0x41de41
lea eax, [esp + 0x98]
push 0x48e1a8
push eax
call fcn.00458600
add esp, 8
test eax, eax
je 0x41e08a
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 0x41e08a
mov al, byte [0x48e1cc]
test al, al
je 0x41e08a
mov edi, 0x48e1cc
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 0x41e08a
mov al, byte [esp + 0x1a0]
test al, al
je 0x41e08a
mov edi, 0x48e1cc
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 0x48e1cc
call fcn.004589f0
add esp, 0xc
test eax, eax
jne 0x41dfef
mov edi, 0x48e1cc
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, 0x48e1cc
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.004586b0
add esp, 0xc
jmp 0x41df67
mov al, byte [esp + 0x1a0]
test al, al
je 0x41e08a
mov edi, 0x48e1cc
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, 0x48e1cc
add edx, ecx
mov cl, byte [esi]
mov bl, byte [edx]
mov al, cl
cmp cl, bl
jne 0x41e054
test al, al
je 0x41e050
mov cl, byte [esi + 1]
mov bl, byte [edx + 1]
mov al, cl
cmp cl, bl
jne 0x41e054
add esi, 2
add edx, 2
test al, al
jne 0x41e02c
xor eax, eax
jmp 0x41e059
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41e08a
mov edi, 0x48e1cc
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 0x41dfef
mov al, byte [0x494b70]
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.004585a3
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 0x41e107
test cl, cl
je 0x41e103
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41e107
add eax, 2
add esi, 2
test cl, cl
jne 0x41e0df
xor eax, eax
jmp 0x41e10c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jg 0x41e14f
lea esi, [esp + 0x1a0]
lea eax, [esp + 0x2a8]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41e146
test cl, cl
je 0x41e142
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41e146
add eax, 2
add esi, 2
test cl, cl
jne 0x41e11e
xor eax, eax
jmp 0x41e14b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jle 0x41e17e
lea ecx, [esp + 0x38f4]
call fcn.00443420
test eax, eax
jne 0x41dd11
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
inc ecx
add eax, 0x2a4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
jmp 0x41d993
mov esi, dword [ebp + 4]
mov eax, dword [esi + 0x364d8]
test eax, eax
jne 0x41e18f
xor edx, edx
jmp 0x41e1a8
mov ecx, dword [esi + 0x364dc]
sub ecx, eax
mov eax, 0x60f25deb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, dword [esp + 0x24]
cmp edi, edx
jne 0x41e270
mov eax, dword [esi + 0x3650c]
test eax, eax
je 0x41e249
lea ecx, [esp + 0x8e8]
lea edx, [esp + 0x18ec]
push ecx
push edx
mov ecx, ebp
call fcn.0042b260
test eax, eax
je 0x41e222
mov ebx, dword [esp + 0x5904]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x18ec]
add ecx, 0x36510
push eax
push ebx
call fcn.00442e90
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.0041c6a0
test eax, eax
je 0x41f534
jmp 0x41e2c1
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.0041c6a0
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.0041c6a0
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.0041c6a0
test eax, eax
je 0x41f534
mov ebx, dword [esp + 0x5904]
mov ecx, dword [ebp + 4]
push edi
push ebx
add ecx, 0x36510
call fcn.00442e70
mov ecx, dword [ebp + 4]
add ecx, 0x36510
call fcn.00442a10
cmp dword [ebx + 0x1c], 2
jne 0x41f534
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, 0x36510
mov dword [esp + 0x3d4], 1
call fcn.00442f10
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.00408cc0
test eax, eax
jne 0x41f534
mov edx, dword [ebx]
lea ecx, [esp + 0x3b0]
push ecx
mov ecx, dword [ebp + 4]
push edx
add ecx, 0x36510
mov dword [esp + 0x3d4], 2
call fcn.00442f10
jmp 0x41e399
mov ebx, dword [esp + 0x5908]
xor eax, eax
movsx ecx, byte [ebx + 1]
test ecx, ecx
jle 0x41e35f
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x41e55f
inc eax
cmp eax, ecx
jl 0x41e34e
xor eax, eax
test ecx, ecx
jle 0x41e377
lea esi, [ebx + 2]
cmp byte [esi + eax], 2
je 0x41e409
inc eax
cmp eax, ecx
jl 0x41e368
mov ecx, dword [esp + 0x10]
push 2
push ebx
push ecx
mov ecx, ebp
mov byte [ebx + 1], 0
call fcn.0041c6a0
test eax, eax
je 0x41f534
mov ebx, dword [esp + 0x5904]
mov dl, byte [0x494b70]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x28f1]
mov byte [esp + 0x28f0], dl
mov edx, dword [ebx + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x24]
cmp ecx, 0xffffffff
je 0x41e57f
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x364d8]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*8]
lea eax, [esi + ecx*4]
mov ebp, dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push edx
call ebp
push eax
lea ecx, [esp + 0x28f8]
push str._s__s_SOCKS5
push ecx
call fcn.004585a3
add esp, 0x10
jmp 0x41e5b9
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.0041c6a0
test eax, eax
je 0x41f534
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.0041c7d0
test eax, eax
je 0x41f534
movsx eax, byte [ebx + 1]
inc eax
cmp eax, 0xff
mov dword [esp + 0x18], eax
jg 0x41f534
test eax, eax
jl 0x41f534
mov ecx, dword [esp + 0x5904]
lea eax, [esp + 0x18]
push 8
push eax
push esi
push ecx
push edi
mov ecx, ebp
call fcn.0041c7d0
test eax, eax
je 0x41f534
mov dl, byte [0x494b70]
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.00459160
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 0x41f534
test edx, edx
jl 0x41f534
jle 0x41e519
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.0041c7d0
test eax, eax
je 0x41f534
mov edx, dword [esp + 0x18]
mov cl, byte [0x494b70]
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.00459160
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.0041c6a0
test eax, eax
je 0x41f534
jmp 0x41e392
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x3650c]
test ecx, ecx
je 0x41e59a
mov cl, byte [ebx + 0x28]
lea eax, [ebx + 0x28]
test cl, cl
jne 0x41e3e4
mov ebp, dword [sym.imp.WS2_32.dll_inet_ntoa]
push edx
call ebp
push eax
lea edx, [esp + 0x28f4]
push str._s_unknown_SOCKS5
push edx
call fcn.004585a3
add esp, 0xc
mov esi, dword [esp + 0x5908]
mov ebx, dword [esp + 0x5904]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x94]
push 8
push eax
push esi
push ebx
push ecx
mov ecx, edi
mov dword [esp + 0xa8], 0xa
call fcn.0041c7d0
test eax, eax
je 0x41f534
mov al, byte [esi]
cmp al, 5
jne 0x41f534
cmp byte [esi + 1], 3
jne 0x41ed45
cmp byte [esi + 3], 1
jne 0x41ed45
mov edx, dword [edi + 4]
mov eax, dword [edx + 0xb9d4]
test eax, eax
je 0x41f534
xor eax, eax
mov ecx, ebx
mov dword [esp + 0x70], eax
mov bl, byte [0x494b70]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov ecx, 0x400
mov dword [esp + 0x7c], eax
mov ax, word [esi + 8]
mov word [esp + 0x72], ax
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 0x41e6af
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.004585a3
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.00430d10
mov edi, dword [esp + 0x5918]
mov ebx, dword [esp + 0x30]
add esp, 0x14
mov ecx, dword [edi + 0x24]
cmp ecx, 0xffffffff
je 0x41e82a
mov edx, dword [ebx + 4]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*8]
mov eax, dword [edx + 0x364d8]
mov eax, dword [eax + ecx*4 + 0x164]
cmp eax, 0xffffffff
je 0x41e82a
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 + 0x364f8]
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 0x303c]
test ecx, ecx
je 0x41e82a
cmp dword [eax + 0x3048], 1
jne 0x41e82a
mov ecx, dword [eax + 0x1034]
test ecx, ecx
jne 0x41e79d
lea ecx, [eax + 0x31]
lea edx, [esp + 0x8ec]
push ecx
push edx
mov ecx, ebx
call fcn.00426740
test eax, eax
je 0x41e82a
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x1cb0]
test edx, edx
jne 0x41e803
mov esi, dword [esp + 0x5908]
lea ecx, [esp + 0x18ec]
add eax, 0x18b0
push ecx
push eax
push esi
call fcn.004585a3
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.0041c6a0
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.0041c6a0
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, 0x36510
call fcn.00442ed0
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 0x41f534
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.0041c6a0
test eax, eax
je 0x41f534
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x410c]
test ecx, ecx
jne 0x41ecf1
mov ecx, dword [eax + 0x511c]
test ecx, ecx
jne 0x41ecf1
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 0x41f534
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
jmp 0x41e9b8
mov edx, 2
xor eax, eax
cmp dword [edi + 8], eax
je 0x41f534
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], 1
lea ecx, [esp + 0x9c]
cmp dword [ecx], esi
je 0x41e9e7
inc eax
add ecx, 4
cmp eax, 1
jb 0x41e9da
cmp eax, 1
jne 0x41e9fa
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 0x41ea3f
mov edx, dword [edi + 4]
mov eax, dword [edx + 0xa9b8]
cmp eax, 0xffffffff
je 0x41ec93
mov ecx, dword [esp + 0x30]
inc ecx
cmp ecx, eax
mov dword [esp + 0x30], ecx
jg 0x41f534
jmp 0x41ec93
test eax, eax
mov dword [esp + 0x30], 0
jl 0x41f534
lea eax, [esp + 0x98]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41ec81
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 0x41ecb1
push eax
mov eax, dword [esp + 0x30]
push eax
mov ecx, edi
call fcn.00419940
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
mov dx, word [esp + 0x72]
cmp ecx, eax
mov ax, word [esp + 0x86]
jne 0x41eaf2
cmp ax, dx
je 0x41eb18
cmp byte [esi], 0
jne 0x41ec20
cmp byte [ebp + 0xb], 0
jne 0x41ec20
cmp byte [ebp + 0xc], 0
jne 0x41ec20
cmp ax, dx
jne 0x41ec20
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], esi
cmp ecx, 0xa
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
jbe 0x41ebe9
cmp byte [esi], 0
jne 0x41ebe9
mov al, byte [ebp + 0xb]
test al, al
jne 0x41ebe9
mov al, byte [ebp + 0xd]
cmp al, 1
jne 0x41eb70
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 0x41ebe9
cmp al, 3
jne 0x41ebe9
movsx eax, byte [ebp + 0xe]
lea edx, [eax + 7]
cmp ecx, edx
jbe 0x41ebe9
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 0x41ebe5
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.00419940
mov esi, dword [esp + 0x10]
jmp 0x41ec93
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.00419940
mov esi, dword [esp + 0x10]
jmp 0x41ec93
lea eax, [esp + 0x98]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41ecc4
mov ecx, dword [esp + 0x5904]
cmp dword [ecx + 0x1c], 2
je 0x41e9b1
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.0041c7d0
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.0041d090
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 0x41f534
cmp byte [esi + 1], 1
jne 0x41f10f
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, 0x36510
call fcn.00442ed0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x41eda3
mov ecx, dword [esp + 0x10]
push 0xa
push esi
push ecx
mov ecx, edi
mov byte [esi + 1], 1
call fcn.0041c6a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
mov dl, byte [0x494b70]
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 0x41eddb
mov ax, word [esi + 8]
mov word [esp + 0x86], ax
jmp 0x41ee5c
cmp al, 3
jne 0x41ee5c
movsx ebx, byte [esi + 4]
lea eax, [ebx - 3]
test eax, eax
mov dword [esp + 0x38], eax
jle 0x41ee19
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.0041c7d0
test eax, eax
je 0x41f534
jmp 0x41ee1f
jl 0x41f534
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 [0x494b70]
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 0x41eebe
mov edx, dword [esi + 4]
push edx
call ebp
test eax, eax
je 0x41f534
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.004585a3
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.00430d10
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 0x41f04d
mov edx, dword [esi + 4]
lea ecx, [eax*8]
sub ecx, eax
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*8]
mov ecx, dword [edx + 0x364d8]
mov eax, dword [ecx + eax*4 + 0x164]
cmp eax, 0xffffffff
je 0x41f04d
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 + 0x364f8]
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 0x303c]
test ecx, ecx
je 0x41f04d
cmp dword [eax + 0x3048], 1
jne 0x41f04d
mov ecx, dword [eax + 0x1034]
test ecx, ecx
jne 0x41efc7
lea ecx, [eax + 0x31]
push ecx
push edi
mov ecx, esi
call fcn.00426740
test eax, eax
je 0x41f04d
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x1cb0]
test edx, edx
jne 0x41f026
mov ebx, dword [esp + 0x5908]
lea edx, [esp + 0x4e8]
add eax, 0x18b0
push edx
push eax
push ebx
call fcn.004585a3
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.0041c6a0
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.0041c6a0
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.00426140
test eax, eax
jne 0x41f09e
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.0041c6a0
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.0041c6a0
mov edx, dword [edi + 8]
push 0
push ebx
push edx
push edi
mov ecx, esi
call fcn.00423f50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
cmp al, 5
jne 0x41f534
cmp byte [esi + 1], 2
jne 0x41f534
mov al, byte [esi + 3]
cmp al, 1
jne 0x41f272
mov eax, dword [esi + 4]
mov cx, word [esi + 8]
mov dword [esp + 0x60], eax
mov word [esp + 0x5e], cx
mov dl, byte [0x494b70]
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 0x41f19f
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.004585a3
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.00430d10
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, 0x36510
call fcn.00442ed0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x41f338
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.0041c6a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8
cmp al, 3
jne 0x41f13c
movsx ebx, byte [esi + 4]
lea eax, [ebx - 3]
test eax, eax
mov dword [esp + 0x38], eax
jle 0x41f2b4
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.0041c7d0
test eax, eax
je 0x41f534
jmp 0x41f2ba
jl 0x41f534
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 0x41f30f
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x60], ecx
jmp 0x41f13c
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.0041c6a0
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 0x41f534
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.0041c6a0
test eax, eax
je 0x41f534
xor eax, eax
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], eax
cmp dword [edi + 0x1c], 2
jne 0x41f534
mov eax, dword [ebp + 8]
test eax, eax
je 0x41f534
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 0x41f41e
inc eax
add ecx, 4
cmp eax, 1
jb 0x41f411
cmp eax, 1
jne 0x41f435
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 0x41f473
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0xa9b8]
cmp eax, 0xffffffff
je 0x41f4ae
mov ecx, dword [esp + 0x30]
inc ecx
cmp ecx, eax
mov dword [esp + 0x30], ecx
jg 0x41f534
jmp 0x41f4ae
test eax, eax
mov dword [esp + 0x30], 0
jl 0x41f534
mov eax, dword [edi + 8]
lea edx, [esp + 0x98]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41f4c5
lea ecx, [esp + 0x98]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41f534
cmp dword [edi + 0x1c], 2
je 0x41f3e8
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.0041cd20
mov esi, eax
test esi, esi
je 0x41f534
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.0041c6a0
test eax, eax
je 0x41f52d
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
push edi
mov ecx, ebp
call fcn.00423f50
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58f0
ret 8