Function at 0x422a10
Capabilities:
Check for time delay via gettickcount
Create raw socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Get socket status
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x427c
call fcn.00457d20
mov eax, dword [esp + 0x4280]
push ebx
push ebp
push esi
mov ebp, dword [eax + 4]
mov eax, dword [0x494050]
mov ebx, ecx
push edi
test eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebp
mov byte [esp + 0x127c], 0
lea edx, [esp + 0x27c]
mov edi, str.220_CCProxy_FTP_Service_r_n220_you_need_to_input_userid_site_as_login_name._r_n220_Example:_user_anonymous_ftp.netscape.com_r_n
jne 0x422a54
mov edi, str.220_CCProxy_FTP_Service_Unregistered__r_n220_you_need_to_input_userid_site_as_login_name._r_n220_Example:_user_anonymous_ftp.netscape.com_r_n
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x27c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x280]
push ecx
push ebp
mov ecx, ebx
call fcn.0041c1d0
test eax, eax
jne 0x422aa9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x427c
ret 0xc
mov ecx, dword [esp + 0x4290]
lea edx, [esp + 0x10]
lea eax, [esp + 0x27c]
push edx
push eax
push ecx
push ebp
mov ecx, ebx
mov dword [esp + 0x20], 0x1000
call fcn.0041ca00
test eax, eax
jne 0x422ae4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x427c
ret 0xc
mov edx, dword [esp + 0x10]
push 5
lea eax, [esp + 0x280]
push str.USER
push eax
mov byte [esp + edx + 0x286], 0
call fcn.00459d50
add esp, 0xc
test eax, eax
je 0x422b1d
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x427c
ret 0xc
lea edi, [esp + 0x281]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3288]
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
lea eax, [esp + 0x3288]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 0x240b8]
push edx
push eax
call fcn.004584c0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x422b7a
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x427c
ret 0xc
mov byte [ebp], 0
inc ebp
push 0x48e470
push ebp
mov dword [esp + 0x2c], 0x15
call fcn.00457ca0
add esp, 8
test eax, eax
je 0x422baa
mov byte [eax], 0
inc eax
push eax
call fcn.004584b2
add esp, 4
mov dword [esp + 0x24], eax
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x4290]
mov ebx, eax
mov ecx, dword [ecx + 4]
push ebx
push esi
add ecx, 0x27600
mov dword [esp + 0x20], ebx
call fcn.00442570
mov dl, byte [0x493b50]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x1281]
mov byte [esp + 0x1280], dl
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x422c3a
mov edi, dword [esp + 0x14]
lea eax, [eax + eax*2]
shl eax, 6
mov edx, dword [edi + 4]
mov edx, dword [edx + 0x275c8]
add eax, edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x1288]
push str._s__s_FTP
push ecx
call fcn.00457c43
add esp, 0x10
jmp 0x422c5b
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x1284]
push str._s_unknown_FTP
push edx
call fcn.00457c43
mov edi, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xa558]
test ecx, ecx
je 0x422ce1
mov cl, byte [0x493b50]
xor eax, eax
mov byte [esp + 0x2284], cl
mov ecx, 0x400
lea edi, [esp + 0x2285]
lea edx, [esp + 0x3288]
rep stosd dword es:[edi], eax
push ebp
push edx
lea eax, [esp + 0x228c]
push str.CONNECT__s__s
push eax
call fcn.00457c43
lea edi, [esp + 0x2294]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1280]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x4290]
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x1280]
push eax
call fcn.00430470
mov ecx, dword [esp + 0x28]
add esp, 4
push 4
push ecx
push ebp
push esi
push ebx
mov ecx, edi
call fcn.00425b50
test eax, eax
jne 0x422d18
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x427c
ret 0xc
cmp dword [esi + 0x1c], 2
jne 0x422dbb
mov ebp, 0x1000
mov eax, dword [edi + 8]
test eax, eax
je 0x422dbb
lea edx, [esp + 0x10]
lea eax, [esp + 0x27c]
push edx
push eax
push esi
push ebx
mov ecx, edi
mov dword [esp + 0x20], ebp
call fcn.0041ca00
test eax, eax
je 0x422e14
push 3
lea ecx, [esp + 0x280]
push 0x48f030
push ecx
call fcn.00459d50
add esp, 0xc
test eax, eax
je 0x422d96
xor ecx, ecx
movsx eax, byte [esp + ecx + 0x27c]
add eax, 0xffffffd0
test eax, eax
jl 0x422d8b
cmp eax, 9
jg 0x422d8b
inc ecx
cmp ecx, 3
jl 0x422d71
cmp ecx, 3
je 0x422e26
jmp 0x422db1
push 4
lea edx, [esp + 0x280]
push str.220
push edx
call fcn.00459d50
add esp, 0xc
test eax, eax
je 0x422dbb
cmp dword [esi + 0x1c], 2
je 0x422d27
lea eax, [esp + 0x3288]
lea ecx, [esp + 0x27c]
push eax
push str.USER__s_r_n
push ecx
call fcn.00457c43
lea edi, [esp + 0x288]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x27c]
not ecx
dec ecx
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.0041c1d0
test eax, eax
jne 0x422e38
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x427c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x427c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x427c
ret 0xc
xor edi, edi
mov dword [esp + 0x98], 1
mov dword [esp + 0x9c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x422ea3
mov ecx, dword [ebp + 4]
lea eax, [eax + eax*2]
shl eax, 6
mov edx, dword [ecx + 0x275c8]
mov ecx, dword [ecx + 0x209fc]
add eax, edx
cmp ecx, 1
mov edx, dword [eax + 0x80]
mov eax, dword [eax + 0x7c]
lea edi, [eax + edx]
mov dword [esp + 0x1c], edi
jne 0x422e9a
mov dword [esp + 0x1c], edx
cmp ecx, 2
jne 0x422ea3
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x1c], 2
jne 0x4238fe
mov ebp, dword [esp + 0x4294]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
jmp 0x422eca
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
test eax, eax
je 0x4238fe
mov eax, 1
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa0], eax
xor ecx, ecx
lea edx, [esp + 0xa4]
cmp dword [edx], esi
je 0x422efe
inc ecx
add edx, 4
cmp ecx, 1
jb 0x422ef1
cmp ecx, 1
jne 0x422f16
mov eax, 2
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa0], eax
mov esi, dword [ebp]
cmp esi, 0xffffffff
je 0x422f56
xor ecx, ecx
test eax, eax
jbe 0x422f37
lea edx, [esp + 0xa4]
cmp dword [edx], esi
je 0x422f37
inc ecx
add edx, 4
cmp ecx, eax
jb 0x422f2b
cmp ecx, eax
jne 0x422f56
cmp eax, 0x40
jae 0x422f56
mov dword [esp + ecx*4 + 0xa4], esi
mov eax, dword [esp + 0xa0]
inc eax
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x4298]
mov esi, dword [ecx]
cmp esi, 0xffffffff
je 0x422f9c
xor ecx, ecx
test eax, eax
jbe 0x422f7d
lea edx, [esp + 0xa4]
cmp dword [edx], esi
je 0x422f7d
inc ecx
add edx, 4
cmp ecx, eax
jb 0x422f71
cmp ecx, eax
jne 0x422f9c
cmp eax, 0x40
jae 0x422f9c
mov dword [esp + ecx*4 + 0xa4], esi
mov eax, dword [esp + 0xa0]
inc eax
mov dword [esp + 0xa0], eax
lea edx, [esp + 0x98]
lea eax, [esp + 0xa0]
push edx
push 0
push 0
push eax
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x422fe4
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0xa9b8]
cmp eax, 0xffffffff
je 0x4238ed
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, eax
mov dword [esp + 0x38], ecx
jg 0x423910
jmp 0x4238ed
test eax, eax
mov dword [esp + 0x38], 0
jl 0x42391f
mov edx, dword [esp + 0x4290]
mov eax, dword [edx + 0x24]
cmp eax, 0xffffffff
je 0x4230cc
mov ecx, dword [esp + 0x14]
lea eax, [eax + eax*2]
shl eax, 6
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 0x275c8]
mov eax, dword [ecx + eax + 0x70]
cmp eax, 0xffffffff
jle 0x4230cc
test eax, eax
je 0x423931
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x4290]
mov edx, dword [esp + 0x14]
mov edi, eax
mov ecx, dword [ecx + 0x24]
mov eax, dword [edx + 4]
lea edx, [ecx + ecx*2]
mov ecx, dword [eax + 0x275c8]
mov eax, dword [eax + 0x209fc]
shl edx, 6
add ecx, edx
cmp eax, 1
mov edx, dword [ecx + 0x80]
mov ebx, dword [ecx + 0x7c]
lea esi, [ebx + edx]
jne 0x42306f
mov esi, edx
cmp eax, 2
jne 0x423076
mov esi, ebx
cmp esi, dword [esp + 0x1c]
jae 0x423084
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
lea eax, [esi + esi*4]
lea edx, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [edx + edx*4]
lea eax, [eax + eax*4]
shl eax, 3
lea edx, [edx + edx*4]
shl edx, 3
sub eax, edx
xor edx, edx
div dword [ecx + 0x70]
mov ecx, dword [esp + 0x3c]
mov edx, edi
sub edx, ecx
cmp edx, eax
jae 0x4230cc
sub eax, edi
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0xa0]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x423166
mov ebx, dword [esp + 0x4290]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x280]
push ecx
push edx
push ebx
push esi
mov ecx, edi
mov dword [esp + 0x24], 0x1000
mov byte [esp + 0x290], 0
call fcn.0041c300
test eax, eax
je 0x423943
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x42314a
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x280]
push eax
push ecx
mov ecx, edi
call fcn.0041c1d0
test eax, eax
je 0x42395b
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x24]
cmp eax, 0xffffffff
je 0x423171
push 0
push ecx
mov ecx, dword [edi + 4]
push eax
add ecx, 0x241e0
call fcn.00406430
jmp 0x423171
mov ebx, dword [esp + 0x4290]
mov edi, dword [esp + 0x14]
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x4232f4
lea edx, [esp + 0xa0]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4232f4
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x423241
mov esi, dword [ebp]
lea eax, [esp + 0x1a4]
push eax
push esi
mov ecx, edi
call fcn.0041c850
push esi
mov dword [ebp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 1
push 0
push 0
push 0
push 1
push 2
mov dword [esp + 0x40], 1
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, dword [esp + 0x4298]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x70]
mov dword [esi], eax
mov eax, dword [esp + 0x5c]
push edx
push eax
push ecx
lea edx, [esp + 0x228]
push str._d._d._d._d
push edx
call fcn.00457c43
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
add esp, 0x18
lea ecx, [esp + 0x218]
shl eax, 8
add eax, edx
mov edx, dword [esi]
push 4
push eax
push ecx
push ebx
push edx
mov ecx, edi
call fcn.00425b50
test eax, eax
je 0x423997
jmp 0x4238ed
mov edx, dword [ebp]
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x280]
push eax
push ecx
push ebx
push edx
mov ecx, edi
mov dword [esp + 0x24], 0x1000
mov byte [esp + 0x290], 0
call fcn.0041c300
test eax, eax
jne 0x4232a1
mov esi, dword [esp + 0x4298]
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov dword [ebp], 0xffffffff
mov dword [esp + 0x28], 0
jmp 0x4232d4
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4232cd
mov esi, dword [esp + 0x4298]
push eax
lea edx, [esp + 0x280]
mov ecx, edi
mov eax, dword [esi]
push edx
push eax
call fcn.0041c1d0
test eax, eax
je 0x42395b
jmp 0x4232d4
mov esi, dword [esp + 0x4298]
mov eax, dword [ebx + 0x24]
cmp eax, 0xffffffff
je 0x4232fb
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [edi + 4]
push eax
add ecx, 0x241e0
call fcn.00406430
jmp 0x4232fb
mov esi, dword [esp + 0x4298]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4233b6
lea edx, [esp + 0xa0]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4233b6
mov edx, dword [esi]
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x280]
push eax
push ecx
push ebx
push edx
mov ecx, edi
mov dword [esp + 0x24], 0x1000
mov byte [esp + 0x290], 0
call fcn.0041c300
test eax, eax
jne 0x423374
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov dword [ebp], 0xffffffff
mov dword [esp + 0x28], 0
jmp 0x423398
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x423398
push eax
mov eax, dword [ebp]
lea edx, [esp + 0x280]
mov ecx, edi
push edx
push eax
call fcn.0041c1d0
test eax, eax
je 0x42395b
mov eax, dword [ebx + 0x24]
cmp eax, 0xffffffff
je 0x4233b6
mov ecx, dword [esp + 0x10]
push 1
push ecx
mov ecx, dword [edi + 4]
push eax
add ecx, 0x241e0
call fcn.00406430
mov esi, dword [esp + 0x20]
lea edx, [esp + 0xa0]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4238ed
lea eax, [esp + 0x10]
lea ecx, [esp + 0x27c]
push eax
push ecx
push ebx
push esi
mov ecx, edi
mov dword [esp + 0x20], 0x1000
mov byte [esp + 0x28c], 0
call fcn.0041ca00
test eax, eax
je 0x42396d
mov eax, dword [ebx + 0x24]
cmp eax, 0xffffffff
je 0x42341c
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 4]
push 1
push edx
push eax
add ecx, 0x241e0
call fcn.00406430
push 4
lea eax, [esp + 0x280]
push str.PORT
push eax
call fcn.00459d50
add esp, 0xc
test eax, eax
jne 0x423642
lea ecx, [esp + 0x90]
lea edx, [esp + 0x94]
push ecx
lea eax, [esp + 0x90]
push edx
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x64]
push ecx
lea eax, [esp + 0x7c]
push edx
push eax
lea ecx, [esp + 0x294]
push str.PORT__d__d__d__d__d__d
push ecx
call fcn.00457c0f
add esp, 0x20
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
push 0
mov dword [ebp], eax
mov word [esp + 0x78], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x76], ax
mov eax, dword [ebp]
lea edx, [esp + 0x74]
push 0x10
push edx
push eax
mov dword [esp + 0x84], 0
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [ebp]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
mov ecx, dword [ebp]
mov esi, dword [sym.imp.WS2_32.dll_getsockname]
lea edx, [esp + 0x44]
lea eax, [esp + 0x74]
push edx
push eax
push ecx
mov dword [esp + 0x50], 0x10
call esi
mov edx, dword [esp + 0x76]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [esp + 0x18]
mov bx, ax
lea eax, [esp + 0x44]
lea ecx, [esp + 0x74]
push eax
push ecx
push edx
and ebx, 0xffff
call esi
mov eax, dword [esp + 0x78]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x218]
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 + 0x88]
push ecx
lea edx, [esp + 0x60]
lea eax, [esp + 0x64]
push edx
lea ecx, [esp + 0x70]
push eax
push ecx
lea edx, [esp + 0x228]
push str._d._d._d._d
push edx
call fcn.00457c0f
mov eax, ebx
and eax, 0x800000ff
jns 0x423575
dec eax
or eax, 0xffffff00
inc eax
push eax
mov eax, ebx
cdq
mov ecx, dword [esp + 0xa4]
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x78]
sar eax, 8
push eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
push eax
push ecx
lea edx, [esp + 0x2ac]
push str.PORT__d__d__d__d__d__d_r_n
push edx
call fcn.00457c43
lea edi, [esp + 0x2b4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x38
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x27c]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0041c1d0
test eax, eax
je 0x423985
mov ecx, dword [esp + 0x4290]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x27c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x20], 0x1000
call fcn.0041ca00
test eax, eax
je 0x423997
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x27c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0041c1d0
test eax, eax
je 0x423985
jmp 0x4238ed
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x423667
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x280]
push eax
push ecx
mov ecx, edi
call fcn.0041c1d0
test eax, eax
je 0x423985
push 4
lea edx, [esp + 0x280]
push str.PASV
push edx
call fcn.00459d50
add esp, 0xc
test eax, eax
jne 0x4238ed
push 1
push eax
push eax
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
push 0
mov dword [ebp], eax
mov word [esp + 0x4c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp]
mov word [esp + 0x4a], ax
lea eax, [esp + 0x48]
push 0x10
push eax
push ecx
mov dword [esp + 0x58], 0
call dword [sym.imp.WS2_32.dll_bind]
mov edx, dword [ebp]
push 5
push edx
call dword [sym.imp.WS2_32.dll_listen]
mov edx, dword [ebp]
mov esi, dword [sym.imp.WS2_32.dll_getsockname]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x48]
push eax
push ecx
push edx
mov dword [esp + 0x4c], 0x10
call esi
mov eax, dword [esp + 0x4a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov bx, ax
mov eax, dword [esp + 0x4290]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x48]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
and ebx, 0xffff
call esi
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1b4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x1c4]
push str._d._d._d._d
push edx
call fcn.00457c0f
mov eax, ebx
and eax, 0x800000ff
jns 0x423781
dec eax
or eax, 0xffffff00
inc eax
push eax
mov eax, ebx
cdq
mov ecx, dword [esp + 0x48]
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x50]
sar eax, 8
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
lea edx, [esp + 0x2ac]
push str.227_Entering_Passive_Mode___d__d__d__d__d__d__r_n
push edx
call fcn.00457c43
lea edi, [esp + 0x2b4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x38
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x27c]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0041c1d0
test eax, eax
je 0x423985
mov eax, dword [ebp]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x48]
mov ecx, esi
push edx
push eax
call fcn.0041c850
mov ecx, dword [esp + 0x4298]
mov dword [ecx], eax
mov edx, dword [ebp]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [esp + 0x4290]
mov edx, dword [esp + 0x18]
mov dword [ebp], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x27c]
push eax
push ecx
push edi
push edx
mov ecx, esi
mov dword [esp + 0x20], 0x1000
call fcn.0041ca00
test eax, eax
je 0x423997
lea eax, [esp + 0x84]
lea ecx, [esp + 0x70]
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x294]
push str.227_Entering_Passive_Mode___d__d__d__d__d__d__r_n
push eax
call fcn.00457c0f
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
lea edx, [esp + 0x1e4]
push str._d._d._d._d
push edx
call fcn.00457c43
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0xbc]
add esp, 0x38
lea ecx, [esp + 0x1b4]
shl eax, 8
add eax, edx
mov edx, dword [ebp]
push 4
push eax
push ecx
push edi
push edx
mov ecx, esi
call fcn.00425b50
test eax, eax
je 0x423997
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x4290]
cmp dword [eax + 0x1c], 2
je 0x422ebe
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x427c
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x427c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x427c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xd
pop ebx
add esp, 0x427c
ret 0xc
mov eax, dword [esp + 0x10]
pop edi
neg eax
sbb eax, eax
pop esi
pop ebp
and eax, 0xd
pop ebx
add esp, 0x427c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xc
pop ebx
add esp, 0x427c
ret 0xc
mov eax, dword [esp + 0x10]
pop edi
neg eax
sbb eax, eax
pop esi
pop ebp
and eax, 0xe
pop ebx
add esp, 0x427c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x427c
ret 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x427c
ret 0xc