Function at 0x422f50
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, 0x4280
call fcn.00458680
push ebx
push ebp
mov ebp, dword [esp + 0x428c]
push esi
mov ebx, ecx
push edi
mov eax, dword [ebp + 4]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [0x495070]
test eax, eax
mov byte [esp + 0x1280], 0
lea edx, [esp + 0x280]
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 0x422f94
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 + 0x280]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x1c]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x284]
push ecx
push esi
mov ecx, ebx
call fcn.0041c6a0
test eax, eax
jne 0x422fed
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4280
ret 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x280]
push edx
push eax
push ebp
push esi
mov ecx, ebx
mov dword [esp + 0x20], 0x1000
call fcn.0041ced0
test eax, eax
jne 0x423021
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4280
ret 0xc
mov ecx, dword [esp + 0x10]
push 5
lea edx, [esp + 0x284]
push str.USER
push edx
mov byte [esp + ecx + 0x28a], 0
call fcn.0045a6b0
add esp, 0xc
test eax, eax
je 0x42305a
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x4280
ret 0xc
lea edi, [esp + 0x285]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x328c]
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 + 0x328c]
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.00458e20
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4230b9
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x4280
ret 0xc
mov esi, dword [esp + 0x14]
push 0x48f470
mov dword [esp + 0x2c], 0x15
mov byte [esi], 0
inc esi
push esi
mov dword [esp + 0x1c], esi
call fcn.00458600
add esp, 8
test eax, eax
je 0x4230f0
mov byte [eax], 0
inc eax
push eax
call fcn.00458e12
add esp, 4
mov dword [esp + 0x28], eax
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [ebx + 4]
push eax
push ebp
add ecx, 0x36510
mov dword [esp + 0x20], eax
call fcn.00442ed0
mov cl, byte [0x494b70]
mov edx, dword [ebp + 0x10]
mov byte [esp + 0x1284], cl
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x1285]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x24]
cmp eax, 0xffffffff
je 0x423179
mov ecx, dword [ebx + 4]
mov edi, dword [ecx + 0x364d8]
lea ecx, [eax*8]
sub ecx, eax
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*8]
lea ecx, [edi + eax*4]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x128c]
push str._s__s_FTP
push edx
call fcn.004585a3
add esp, 0x10
jmp 0x423196
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x1288]
push str._s_unknown_FTP
push eax
call fcn.004585a3
add esp, 0xc
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0xa558]
test eax, eax
je 0x423219
mov dl, byte [0x494b70]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x2289]
mov byte [esp + 0x2288], dl
lea edx, [esp + 0x2288]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x328c]
push eax
push ecx
push str.CONNECT__s__s
push edx
call fcn.004585a3
lea edi, [esp + 0x2298]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1284]
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 + 0x14]
lea eax, [esp + 0x1284]
push eax
call fcn.00430d10
mov ecx, dword [esp + 0x2c]
add esp, 4
push 4
push ecx
push esi
mov esi, dword [esp + 0x24]
push ebp
push esi
mov ecx, ebx
call fcn.00426140
test eax, eax
jne 0x423254
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x4280
ret 0xc
cmp dword [ebp + 0x1c], 2
jne 0x4232f7
mov edi, 0x1000
mov eax, dword [ebx + 8]
test eax, eax
je 0x4232f7
lea edx, [esp + 0x10]
lea eax, [esp + 0x280]
push edx
push eax
push ebp
push esi
mov ecx, ebx
mov dword [esp + 0x20], edi
call fcn.0041ced0
test eax, eax
je 0x423350
push 3
lea ecx, [esp + 0x284]
push 0x49005c
push ecx
call fcn.0045a6b0
add esp, 0xc
test eax, eax
je 0x4232d2
xor ecx, ecx
movsx eax, byte [esp + ecx + 0x280]
add eax, 0xffffffd0
test eax, eax
jl 0x4232c7
cmp eax, 9
jg 0x4232c7
inc ecx
cmp ecx, 3
jl 0x4232ad
cmp ecx, 3
je 0x423362
jmp 0x4232ed
push 4
lea edx, [esp + 0x284]
push str.220
push edx
call fcn.0045a6b0
add esp, 0xc
test eax, eax
je 0x4232f7
cmp dword [ebp + 0x1c], 2
je 0x423263
lea eax, [esp + 0x328c]
lea ecx, [esp + 0x280]
push eax
push str.USER__s_r_n
push ecx
call fcn.004585a3
lea edi, [esp + 0x28c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x280]
not ecx
dec ecx
push ecx
push edx
push eax
mov ecx, ebx
call fcn.0041c6a0
test eax, eax
jne 0x423374
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4280
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x4280
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x4280
ret 0xc
xor esi, esi
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa0], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x3c], eax
cmp ecx, 0xffffffff
mov dword [esp + 0x20], esi
je 0x4233ec
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 edx, dword [edx + 0x209fc]
lea eax, [eax + ecx*4]
cmp edx, 1
mov ecx, dword [eax + 0x170]
mov eax, dword [eax + 0x16c]
lea esi, [eax + ecx]
mov dword [esp + 0x20], esi
jne 0x4233e3
mov dword [esp + 0x20], ecx
cmp edx, 2
jne 0x4233ec
mov dword [esp + 0x20], eax
cmp dword [ebp + 0x1c], 2
jne 0x423e52
mov ebp, dword [esp + 0x4298]
mov eax, dword [ebx + 8]
mov esi, dword [esp + 0x1c]
test eax, eax
je 0x423e52
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xa4], eax
xor ecx, ecx
lea edx, [esp + 0xa8]
cmp dword [edx], esi
je 0x423439
inc ecx
add edx, 4
cmp ecx, 1
jb 0x42342c
cmp ecx, 1
jne 0x423451
mov eax, 2
mov dword [esp + 0xac], esi
mov dword [esp + 0xa4], eax
mov esi, dword [ebp]
cmp esi, 0xffffffff
je 0x423491
xor ecx, ecx
test eax, eax
jbe 0x423472
lea edx, [esp + 0xa8]
cmp dword [edx], esi
je 0x423472
inc ecx
add edx, 4
cmp ecx, eax
jb 0x423466
cmp ecx, eax
jne 0x423491
cmp eax, 0x40
jae 0x423491
mov dword [esp + ecx*4 + 0xa8], esi
mov eax, dword [esp + 0xa4]
inc eax
mov dword [esp + 0xa4], eax
mov edx, dword [esp + 0x429c]
mov esi, dword [edx]
cmp esi, 0xffffffff
je 0x4234d7
xor ecx, ecx
test eax, eax
jbe 0x4234b8
lea edx, [esp + 0xa8]
cmp dword [edx], esi
je 0x4234b8
inc ecx
add edx, 4
cmp ecx, eax
jb 0x4234ac
cmp ecx, eax
jne 0x4234d7
cmp eax, 0x40
jae 0x4234d7
mov dword [esp + ecx*4 + 0xa8], esi
mov eax, dword [esp + 0xa4]
inc eax
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xa4]
push eax
push 0
push 0
push ecx
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x42351f
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0xa9b8]
cmp eax, 0xffffffff
je 0x423e41
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, eax
mov dword [esp + 0x38], ecx
jg 0x423e64
jmp 0x423e41
test eax, eax
mov dword [esp + 0x38], 0
jl 0x423e73
mov eax, dword [esp + 0x4294]
mov ecx, dword [eax + 0x24]
cmp ecx, 0xffffffff
je 0x423622
mov edx, dword [ebx + 4]
lea eax, [ecx*8]
sub eax, ecx
mov edx, dword [edx + 0x364d8]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*8]
mov eax, dword [edx + ecx*4 + 0x160]
cmp eax, 0xffffffff
jle 0x423622
test eax, eax
je 0x423e85
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x4294]
mov edx, dword [ebx + 4]
mov ecx, dword [eax + 0x24]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*8]
mov eax, dword [edx + 0x364d8]
mov edx, dword [edx + 0x209fc]
mov edi, dword [eax + ecx*4 + 0x16c]
lea ecx, [eax + ecx*4]
cmp edx, 1
mov eax, dword [ecx + 0x170]
lea esi, [edi + eax]
jne 0x4235be
mov esi, eax
cmp edx, 2
jne 0x4235c5
mov esi, edi
cmp esi, dword [esp + 0x20]
jae 0x4235d3
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x20]
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 + 0x160]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x3c]
mov edi, edx
sub edi, ecx
cmp edi, eax
jae 0x423622
sub eax, edx
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 + 0x20], esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0xa4]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4236b4
mov edi, dword [esp + 0x4294]
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x284]
push ecx
push edx
push edi
push esi
mov ecx, ebx
mov dword [esp + 0x24], 0x1000
mov byte [esp + 0x294], 0
call fcn.0041c7d0
test eax, eax
je 0x423e97
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x423698
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x284]
push eax
push ecx
mov ecx, ebx
call fcn.0041c6a0
test eax, eax
je 0x423eaf
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x4236bb
push 0
push ecx
mov ecx, dword [ebx + 4]
push eax
add ecx, 0x241e0
call fcn.004066c0
jmp 0x4236bb
mov edi, dword [esp + 0x4294]
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x423841
lea edx, [esp + 0xa4]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x423841
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x42378e
mov esi, dword [ebp]
lea eax, [esp + 0x1a8]
push eax
push esi
mov ecx, ebx
call fcn.0041cd20
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 + 0x2c], 1
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, dword [esp + 0x429c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x74]
mov dword [esi], eax
mov eax, dword [esp + 0x98]
push edx
push eax
push ecx
lea edx, [esp + 0x22c]
push str._d._d._d._d
push edx
call fcn.004585a3
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0xb0]
add esp, 0x18
lea ecx, [esp + 0x21c]
shl eax, 8
add eax, edx
mov edx, dword [esi]
push 4
push eax
push ecx
push edi
push edx
mov ecx, ebx
call fcn.00426140
test eax, eax
je 0x423eeb
jmp 0x423e41
mov edx, dword [ebp]
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x284]
push eax
push ecx
push edi
push edx
mov ecx, ebx
mov dword [esp + 0x24], 0x1000
mov byte [esp + 0x294], 0
call fcn.0041c7d0
test eax, eax
jne 0x4237ee
mov esi, dword [esp + 0x429c]
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 + 0x14], 0
jmp 0x423821
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x42381a
mov esi, dword [esp + 0x429c]
push eax
lea edx, [esp + 0x284]
mov ecx, ebx
mov eax, dword [esi]
push edx
push eax
call fcn.0041c6a0
test eax, eax
je 0x423eaf
jmp 0x423821
mov esi, dword [esp + 0x429c]
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x423848
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [ebx + 4]
push eax
add ecx, 0x241e0
call fcn.004066c0
jmp 0x423848
mov esi, dword [esp + 0x429c]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x423903
lea edx, [esp + 0xa4]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x423903
mov edx, dword [esi]
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x284]
push eax
push ecx
push edi
push edx
mov ecx, ebx
mov dword [esp + 0x24], 0x1000
mov byte [esp + 0x294], 0
call fcn.0041c7d0
test eax, eax
jne 0x4238c1
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 + 0x14], 0
jmp 0x4238e5
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4238e5
push eax
mov eax, dword [ebp]
lea edx, [esp + 0x284]
mov ecx, ebx
push edx
push eax
call fcn.0041c6a0
test eax, eax
je 0x423eaf
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x423903
mov ecx, dword [esp + 0x10]
push 1
push ecx
mov ecx, dword [ebx + 4]
push eax
add ecx, 0x241e0
call fcn.004066c0
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0xa4]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x423e41
lea eax, [esp + 0x10]
lea ecx, [esp + 0x280]
push eax
push ecx
push edi
push esi
mov ecx, ebx
mov dword [esp + 0x20], 0x1000
mov byte [esp + 0x290], 0
call fcn.0041ced0
test eax, eax
je 0x423ec1
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x423969
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
push 1
push edx
push eax
add ecx, 0x241e0
call fcn.004066c0
push 4
lea eax, [esp + 0x284]
push str.PORT
push eax
call fcn.0045a6b0
add esp, 0xc
test eax, eax
jne 0x423b95
lea ecx, [esp + 0x98]
lea edx, [esp + 0x88]
push ecx
lea eax, [esp + 0x94]
push edx
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0xa0]
push ecx
lea eax, [esp + 0x80]
push edx
push eax
lea ecx, [esp + 0x298]
push str.PORT__d__d__d__d__d__d
push ecx
call fcn.0045856f
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 + 0x7c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x7a], ax
mov eax, dword [ebp]
lea edx, [esp + 0x78]
push 0x10
push edx
push eax
mov dword [esp + 0x88], 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 + 0x78]
push edx
push eax
push ecx
mov dword [esp + 0x50], 0x10
call esi
mov edx, dword [esp + 0x7a]
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 + 0x78]
push eax
push ecx
push edx
and ebx, 0xffff
call esi
mov eax, dword [esp + 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x21c]
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 + 0x8c]
push ecx
lea edx, [esp + 0x64]
lea eax, [esp + 0x68]
push edx
lea ecx, [esp + 0x74]
push eax
push ecx
lea edx, [esp + 0x22c]
push str._d._d._d._d
push edx
call fcn.0045856f
mov eax, ebx
and eax, 0x800000ff
jns 0x423ac8
dec eax
or eax, 0xffffff00
inc eax
push eax
mov eax, ebx
cdq
mov ecx, dword [esp + 0xa8]
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x7c]
sar eax, 8
push eax
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x90]
push edx
push eax
push ecx
lea edx, [esp + 0x2b0]
push str.PORT__d__d__d__d__d__d_r_n
push edx
call fcn.004585a3
lea edi, [esp + 0x2b8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x38
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x280]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0041c6a0
test eax, eax
je 0x423ed9
mov ecx, dword [esp + 0x4294]
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x10]
lea eax, [esp + 0x280]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x20], 0x1000
call fcn.0041ced0
test eax, eax
je 0x423eeb
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x280]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0041c6a0
test eax, eax
je 0x423ed9
jmp 0x423e3d
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x423bba
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x284]
push eax
push ecx
mov ecx, ebx
call fcn.0041c6a0
test eax, eax
je 0x423ed9
push 4
lea edx, [esp + 0x284]
push str.PASV
push edx
call fcn.0045a6b0
add esp, 0xc
test eax, eax
jne 0x423e41
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 + 0x4294]
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 + 0x1b8]
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 + 0x30]
push eax
push ecx
lea edx, [esp + 0x1c8]
push str._d._d._d._d
push edx
call fcn.0045856f
mov eax, ebx
and eax, 0x800000ff
jns 0x423cd4
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 + 0x4c]
push edx
push eax
push ecx
lea edx, [esp + 0x2b0]
push str.227_Entering_Passive_Mode___d__d__d__d__d__d__r_n
push edx
call fcn.004585a3
lea edi, [esp + 0x2b8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x38
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x280]
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0041c6a0
test eax, eax
je 0x423ed9
mov eax, dword [ebp]
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x48]
mov ecx, esi
push edx
push eax
call fcn.0041cd20
mov ecx, dword [esp + 0x429c]
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 + 0x4294]
mov edx, dword [esp + 0x18]
mov dword [ebp], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x280]
push eax
push ecx
push edi
push edx
mov ecx, esi
mov dword [esp + 0x20], 0x1000
call fcn.0041ced0
test eax, eax
je 0x423eeb
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x74]
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x298]
push str.227_Entering_Passive_Mode___d__d__d__d__d__d__r_n
push eax
call fcn.0045856f
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
lea edx, [esp + 0x1e8]
push str._d._d._d._d
push edx
call fcn.004585a3
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x94]
add esp, 0x38
lea ecx, [esp + 0x1b8]
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.00426140
test eax, eax
je 0x423eeb
mov dword [esp + 0x14], 1
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x4294]
cmp dword [eax + 0x1c], 2
je 0x4233fd
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x4280
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4280
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x4280
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xd
pop ebx
add esp, 0x4280
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, 0x4280
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xc
pop ebx
add esp, 0x4280
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, 0x4280
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x4280
ret 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x4280
ret 0xc