Function at 0x404320
Capabilities:
Get socket status

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42c1e4
push eax
mov eax, 0x2708
mov dword fs:[0], esp
call fcn.0040d330
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x2720], 1
call fcn.0042b07a
mov eax, dword [ebp + 0xd8]
push eax
call fcn.0040d31f
mov esi, eax
mov eax, dword [ebp + 0xdc]
push eax
call fcn.0040d31f
mov edi, eax
mov eax, dword [0x4388b0]
add esp, 8
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x2728]
mov edx, dword [ebp + 0xc4]
push ecx
push esi
push edx
lea eax, [esp + 0x1c]
push str.GET_http:___s:_d_cgi_bin_zfile.cgi_ARG_s_HTTP_1.0_r_n_r_n
push eax
mov byte [esp + 0x2734], 3
call fcn.0041bb64
add esp, 0x14
lea ecx, [esp + 0x28]
push 0
push 0x3f
push 1
push 0
call fcn.0042aaea
test eax, eax
jne 0x4043c7
push str.Cant_create_the_socket
jmp 0x404404
mov eax, dword [ebp + 0xd4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4043f0
mov eax, dword [ebp + 0xc4]
push esi
push eax
lea ecx, [esp + 0x30]
call fcn.0042ac42
test eax, eax
jne 0x404456
push str.Cant_connect_to_server
jmp 0x404404
push edi
push eax
lea ecx, [esp + 0x30]
call fcn.0042ac42
test eax, eax
jne 0x404456
push str.Cant_make_the_connection_to_proxy
mov ecx, dword [esp + 0x2734]
call fcn.0042156e
lea ecx, [esp + 0x10]
mov byte [esp + 0x2720], 2
call fcn.004213e5
lea ecx, [esp + 0x28]
mov byte [esp + 0x2720], 1
call fcn.0042b0f0
lea ecx, [esp + 0x2728]
mov byte [esp + 0x2720], 0
call fcn.004213e5
mov dword [esp + 0x2720], 0xffffffff
jmp 0x4048de
xor esi, esi
mov bl, 4
mov eax, dword [esp + 0x10]
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.0042b1f3
mov ecx, dword [esp + 0x10]
add esi, eax
cmp eax, dword [ecx - 8]
jge 0x4044ac
lea edx, [esp + 0x24]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0041b68b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2724], bl
call fcn.0042151e
lea ecx, [esp + 0x24]
mov byte [esp + 0x2720], 3
call fcn.004213e5
jmp 0x40445a
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x6c]
push ecx
push 0
lea edx, [esp + 0x7c]
push 0
push edx
push 1
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], 1
mov dword [esp + 0x80], 5
mov dword [esp + 0x84], 0
call sub.WSOCK32.dll_select
or esi, 0xffffffff
cmp eax, esi
jne 0x40450a
mov ecx, dword [esp + 0x2730]
push str.socket_errror
call fcn.0042156e
jmp 0x4048a1
cmp eax, 1
je 0x404525
mov ecx, dword [esp + 0x2730]
push str.Time_out
call fcn.0042156e
jmp 0x4048a1
lea eax, [esp + 0x272c]
push 0x438428
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0042167a
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2720], 5
call fcn.00421d96
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2720], 6
call fcn.004218c9
mov edx, dword [esp + 0x1c]
push 0
push 0x1001
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x272c], 7
call fcn.00421ea8
test eax, eax
jne 0x40458d
lea ecx, [esp + 0x28]
call fcn.0042b17f
jmp 0x40486e
lea eax, [esp + 0x64]
lea ecx, [esp + 0x3c]
push eax
call fcn.004223de
push eax
lea ecx, [esp + 0x1c]
push 0x7e
push ecx
mov byte [esp + 0x272c], 8
call fcn.0041b629
lea ecx, [esp + 0x64]
mov byte [esp + 0x2720], 0xa
call fcn.004213e5
mov edx, dword [esp + 0x18]
push 0
push 0x5002
push edx
lea ecx, [esp + 0x58]
call fcn.0042193e
test eax, eax
jne 0x4045f1
lea ecx, [esp + 0x3c]
call fcn.004220c3
lea ecx, [esp + 0x28]
call fcn.0042b17f
jmp 0x40485d
xor edi, edi
lea eax, [esp + 0x178]
push edi
push 0x259f
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], edi
call fcn.0042b1a3
test eax, eax
je 0x40464f
cmp eax, esi
je 0x4046ee
lea ecx, [esp + 0x178]
mov byte [esp + eax + 0x178], 0
push ecx
lea ecx, [esp + 0x50]
call fcn.00421ab1
push 0
lea edx, [esp + 0x17c]
push 0x259f
push edx
lea ecx, [esp + 0x34]
call fcn.0042b1a3
test eax, eax
jne 0x404612
lea ecx, [esp + 0x28]
call fcn.0042b17f
mov eax, dword [esp + 0x4c]
push 0
push 0
lea ecx, [esp + 0x54]
call dword [eax + 0x28]
mov eax, dword [0x4388b0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x14]
mov bl, 0xc
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x2724], bl
call fcn.00421b21
test eax, eax
je 0x40481f
push 0xa
lea ecx, [esp + 0x18]
call fcn.0041bbca
push 0xd
lea ecx, [esp + 0x18]
call fcn.0041bbca
test edi, edi
jne 0x404713
push str._407
lea ecx, [esp + 0x18]
call fcn.0041b7de
cmp eax, esi
jg 0x40481f
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40471b
push str._200
lea ecx, [esp + 0x18]
call fcn.0041b7de
cmp eax, esi
jle case.0x40475d.72
mov dword [esp + 0x24], 1
jmp case.0x40475d.72
push 0
push 0
push 0x4383fc
mov ecx, ebp
call fcn.0041e518
lea ecx, [esp + 0x28]
mov byte [ebp + 0xf1], 1
call fcn.0042b17f
jmp 0x40485d
mov eax, dword [esp + 0x24]
test eax, eax
je 0x404730
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x404734
mov edi, 1
jmp case.0x40475d.72
mov eax, dword [esp + 0x14]
test edi, edi
je case.0x40475d.72
cmp byte [eax], 0x64
jne 0x40481f
movsx ecx, byte [eax + 2]
add ecx, 0xffffffbc
cmp ecx, 9
ja case.0x40475d.72
xor edx, edx
mov dl, byte [ecx + 0x404a18]
jmp dword [edx*4 + 0x404a04]
mov ecx, dword [eax - 8]
lea edx, [esp + 0x178]
add ecx, 0xfffffffc
push edx
add eax, 4
push ecx
push eax
call fcn.004018a0
add esp, 0xc
lea ecx, [esp + 0x3c]
push eax
lea eax, [esp + 0x17c]
push eax
call fcn.00421fff
jmp case.0x40475d.72
mov ecx, dword [eax - 8]
add eax, 4
add ecx, 0xfffffffc
push ecx
push eax
lea ecx, [esp + 0x68]
call fcn.0041b5f7
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x2724], 0xd
call fcn.0042151e
lea ecx, [esp + 0x60]
mov byte [esp + 0x2720], bl
call fcn.004213e5
push 0x20
lea ecx, [esp + 0x24]
call fcn.00421823
cmp eax, esi
jle case.0x40475d.72
lea ecx, [esp + 0x68]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.0041b744
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x2724], 0xe
call fcn.0042151e
lea ecx, [esp + 0x68]
mov byte [esp + 0x2720], bl
call fcn.004213e5
lea edx, [esp + 0x14]
lea ecx, [esp + 0x4c]
push edx
call fcn.00421b21
test eax, eax
jne 0x404693
lea ecx, [esp + 0x3c]
call fcn.004220c3
lea ecx, [esp + 0x4c]
call fcn.00421c6e
mov eax, dword [esp + 0x18]
push eax
call fcn.004221d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x2720], 0xb
call fcn.004213e5
lea ecx, [esp + 0x14]
mov byte [esp + 0x2720], 0xa
call fcn.004213e5
lea ecx, [esp + 0x18]
mov byte [esp + 0x2720], 7
call fcn.004213e5
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2720], 6
call fcn.004218fb
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2720], 5
call fcn.00421deb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2720], 3
call fcn.004213e5
lea ecx, [esp + 0x10]
mov byte [esp + 0x2720], 2
call fcn.004213e5
lea ecx, [esp + 0x28]
mov byte [esp + 0x2720], 1
call fcn.0042b0f0
lea ecx, [esp + 0x2728]
mov byte [esp + 0x2720], 0
call fcn.004213e5
mov dword [esp + 0x2720], esi
lea ecx, [esp + 0x272c]
call fcn.004213e5
xor eax, eax
mov ecx, dword [esp + 0x2718]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2714
ret 0xc
lea ecx, [esp + 0x3c]
call fcn.004220c3
lea ecx, [esp + 0x4c]
call fcn.00421c6e
mov eax, dword [esp + 0x18]
push eax
call fcn.004221d4
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.00404a30
lea ecx, [esp + 0x20]
mov byte [esp + 0x2720], 0xb
call fcn.004213e5
lea ecx, [esp + 0x14]
mov byte [esp + 0x2720], 0xa
call fcn.004213e5
lea ecx, [esp + 0x18]
mov byte [esp + 0x2720], 7
call fcn.004213e5
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2720], 6
call fcn.004218fb
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2720], 5
call fcn.00421deb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2720], 3
call fcn.004213e5
lea ecx, [esp + 0x10]
mov byte [esp + 0x2720], 2
call fcn.004213e5
lea ecx, [esp + 0x28]
mov byte [esp + 0x2720], 1
call fcn.0042b0f0
lea ecx, [esp + 0x2728]
mov byte [esp + 0x2720], 0
call fcn.004213e5
lea ecx, [esp + 0x272c]
mov dword [esp + 0x2720], esi
call fcn.004213e5
mov eax, 1
jmp 0x4048ec
lea ecx, [esp + 0x3c]
call fcn.004220c3
lea ecx, [esp + 0x4c]
call fcn.00421c6e
mov edx, dword [esp + 0x18]
push edx
jmp 0x404836