Function at 0x1000d520
Capabilities:
Get socket status

Disassembly:
sub esp, 0x6c4
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1d1]
mov byte [esp + 0x1d0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call sub.KERNEL32.dll_GetTickCount
mov edi, dword [esp + 0x6ec]
push 0x1002f83c
lea esi, [edi + 0x14c]
mov dword [edi + 0x148], eax
push esi
mov dword [esp + 0x20], esi
call fcn.10005250
mov ebx, dword [esp + 0x6e0]
lea eax, [esp + 0x2c]
push esi
push eax
push ebx
call fcn.1000cf00
add esp, 0x14
test eax, eax
je 0x1000d594
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x6c4
ret
mov ebp, dword [esp + 0x6dc]
mov esi, dword [esp + 0x6e0]
test ebp, ebp
je 0x1000d5b6
test esi, esi
je 0x1000d5b6
lea ecx, [esp + 0x24]
push str.POST
push ecx
jmp 0x1000d5c0
lea edx, [esp + 0x24]
push str.GET
push edx
call fcn.1000d1c0
add esp, 8
lea eax, [esp + 0xcc]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.1000d1c0
lea edx, [esp + 0x2c]
push str._HTTP_1.1_r_n
push edx
call fcn.1000d1c0
lea eax, [esp + 0x34]
push str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg____r_n
push eax
call fcn.1000d1c0
push ebx
lea ecx, [esp + 0x1ec]
push str.Referer:__s_r_n
push ecx
call fcn.10011dec
lea edx, [esp + 0x1f4]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.1000d1c0
lea ecx, [esp + 0x50]
push str.Accept_Language:_zh_CN_r_n
push ecx
call fcn.1000d1c0
lea edx, [esp + 0x58]
push str.User_Agent:_Mozilla_4.0__compatible__MSIE_7.0__Windows_98__r_n
push edx
call fcn.1000d1c0
lea eax, [esp + 0x60]
push str.Connection:_Keep_Alive_r_n
push eax
call fcn.1000d1c0
add esp, 0x44
lea ecx, [esp + 0x24]
push str.Cache_Control:_no_cache_r_n
push ecx
call fcn.1000d1c0
lea edx, [esp + 0x54]
lea eax, [esp + 0x1d8]
push edx
push str.Host:__s_r_n
push eax
call fcn.10011dec
lea ecx, [esp + 0x1e4]
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.1000d1c0
add esp, 0x1c
test esi, esi
je 0x1000d704
mov ebx, dword [esp + 0x6e4]
push ebx
call fcn.100056c0
add esp, 4
test eax, eax
je 0x1000d6ca
push ebx
lea eax, [esp + 0x1d4]
push str.Content_Type:_multipart_form_data__boundary_s_r_n
push eax
call fcn.10011dec
lea ecx, [esp + 0x1dc]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.1000d1c0
add esp, 0x14
jmp 0x1000d6dc
lea eax, [esp + 0x24]
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push eax
call fcn.1000d1c0
add esp, 8
push esi
lea ecx, [esp + 0x1d4]
push str.Content_Length:__d
push ecx
call fcn.10011dec
lea edx, [esp + 0x1dc]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.1000d1c0
add esp, 0x14
lea ecx, [esp + 0x24]
push str._r_n_r_n
push ecx
call fcn.1000d1c0
xor ebx, ebx
add esp, 8
cmp ebp, ebx
je 0x1000d73e
cmp esi, ebx
je 0x1000d73e
push esi
lea edx, [esp + 0x28]
push ebp
push edx
call fcn.1000d180
lea eax, [esp + 0x30]
push 0x1002b634
push eax
call fcn.1000d1c0
add esp, 0x14
mov ecx, dword [esp + 0x6e8]
mov eax, dword [esp + 0x28]
cmp ecx, ebx
mov dword [esp + 0x5d4], eax
mov dword [esp + 0x5d0], 1
mov dword [esp + 0x1c], 5
je 0x1000d76b
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x5d0]
push ecx
push ebx
push ebx
inc eax
push edx
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x1000d7b3
mov eax, dword [esp + 0x18]
push 0x1002b3e0
push eax
call fcn.10005250
lea ecx, [esp + 0x2c]
push ecx
call fcn.1000d160
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c4
ret
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebp
jmp 0x1000d7c5
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x13]
push 1
lea eax, [esp + 0x28]
push edx
push eax
call fcn.1000d1e0
add esp, 0xc
test eax, eax
jg 0x1000d7ed
test ebx, ebx
je 0x1000dabb
mov al, 0xa
mov byte [esp + 0x13], al
jmp 0x1000d7f1
mov al, byte [esp + 0x13]
test esi, esi
je 0x1000d813
mov edx, dword [esp + 0x6f0]
test edx, edx
je 0x1000d813
mov ecx, dword [esp + 0x6f4]
test ecx, ecx
je 0x1000d813
cmp ebp, dword [ecx]
jge 0x1000d813
mov byte [edx + ebp], al
inc ebp
cmp al, 0xd
je 0x1000d7c5
cmp al, 0xa
je 0x1000d82d
cmp ebx, 0x3fc
jge 0x1000d82d
mov byte [esp + ebx + 0x1d0], al
inc ebx
jmp 0x1000d7c5
lea ecx, [esp + 0x1d0]
push ebx
lea edx, [esp + 0x1d4]
push ecx
push edx
mov byte [esp + ebx + 0x1dc], 0
call fcn.10007d40
push esi
push 0x1002b268
call fcn.100145ff
add esp, 0x14
xor ebx, ebx
test esi, esi
jne 0x1000da29
lea eax, [esp + 0x1d0]
push str.HTTP_
push eax
call fcn.100055c0
add esp, 8
test eax, eax
je 0x1000d899
lea ecx, [esp + 0x1d0]
push 0x1002ad6c
push ecx
call fcn.10005560
push eax
call fcn.10005120
add esp, 0xc
mov dword [edi], eax
lea edx, [esp + 0x1d0]
push str.Date:
push edx
call fcn.100055c0
add esp, 8
test eax, eax
je 0x1000d8c8
lea eax, [esp + 0x1d5]
push 0x1f
lea ecx, [edi + 4]
push eax
push ecx
call fcn.10005280
add esp, 0xc
lea edx, [esp + 0x1d0]
push str.Server:
push edx
call fcn.100055c0
add esp, 8
test eax, eax
je 0x1000d8f7
lea eax, [esp + 0x1d7]
push 0x1f
lea ecx, [edi + 0x24]
push eax
push ecx
call fcn.10005280
add esp, 0xc
lea edx, [esp + 0x1d0]
push str.X_Powered_By:
push edx
call fcn.100055c0
add esp, 8
test eax, eax
je 0x1000d926
lea eax, [esp + 0x1dd]
push 0x1f
lea ecx, [edi + 0x44]
push eax
push ecx
call fcn.10005280
add esp, 0xc
lea edx, [esp + 0x1d0]
push str._Version:
push edx
call fcn.100055c0
add esp, 8
test eax, eax
je 0x1000d966
push 0x1f
lea eax, [esp + 0x1d4]
push str._Version:
push eax
call fcn.100055c0
add esp, 8
add eax, 9
lea ecx, [edi + 0x64]
push eax
push ecx
call fcn.10005280
add esp, 0xc
lea edx, [esp + 0x1d0]
push str.Content_Length:
push edx
call fcn.100055c0
add esp, 8
test eax, eax
je 0x1000d9a0
lea eax, [esp + 0x1d0]
push 0x1002ad6c
push eax
call fcn.10005560
push eax
call fcn.10005120
add esp, 0xc
mov dword [edi + 0x84], eax
lea ecx, [esp + 0x1d0]
push str.Content_Type:
push ecx
call fcn.100055c0
add esp, 8
test eax, eax
je 0x1000d9d2
lea edx, [esp + 0x1de]
push 0x1f
lea eax, [edi + 0x88]
push edx
push eax
call fcn.10005280
add esp, 0xc
lea ecx, [esp + 0x1d0]
push str.Transfer_Encoding:
push ecx
call fcn.100055c0
add esp, 8
test eax, eax
je 0x1000da04
lea edx, [esp + 0x1e3]
push 0x1f
lea eax, [edi + 0xa8]
push edx
push eax
call fcn.10005280
add esp, 0xc
lea ecx, [esp + 0x1d0]
push ecx
call fcn.100056c0
add esp, 4
test eax, eax
jne 0x1000d7c5
mov dword [esp + 0x14], 1
jmp 0x1000d7c1
lea edx, [esp + 0x1d0]
push str._title
push edx
call fcn.100055c0
add esp, 8
test eax, eax
je 0x1000d7c5
mov cl, byte [eax + 6]
cmp cl, 0x3e
jne 0x1000da5d
add eax, 7
push 0x7f
push eax
lea eax, [edi + 0xc8]
push eax
jmp 0x1000da7c
cmp cl, 0x20
jne 0x1000da84
push 0x3e
push eax
call fcn.100054f0
add esp, 8
test eax, eax
je 0x1000da84
inc eax
push 0x7f
lea ecx, [edi + 0xc8]
push eax
push ecx
call fcn.10005280
add esp, 0xc
lea esi, [edi + 0xc8]
push str.__title_
push esi
call fcn.100055c0
add esp, 8
test eax, eax
jne 0x1000daa0
mov byte [esi], al
jmp 0x1000daa3
mov byte [eax], 0
cmp byte [esi], 0
je 0x1000d7c1
mov eax, dword [esp + 0x6f0]
test eax, eax
jne 0x1000d7c1
mov eax, dword [esp + 0x6f4]
mov dword [esp + 0x18], ebp
test eax, eax
je 0x1000dbfd
mov ebx, dword [esp + 0x6f0]
lea edx, [edi + 0xa8]
push str.chunked
push edx
mov byte [ebx + ebp], 0
mov dword [eax], ebp
call fcn.100055c0
add esp, 8
test eax, eax
je 0x1000dbfd
mov eax, dword [esp + 0x18]
xor ebp, ebp
xor esi, esi
test eax, eax
jle 0x1000dbf0
lea eax, [esp + 0x14]
lea edi, [esi + ebx]
push eax
push str._x_r_n
push edi
mov dword [esp + 0x20], 0
call fcn.10012f3a
add esp, 0xc
cmp eax, 0xffffffff
je 0x1000dbc8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1d0]
push ecx
push str._x_r_n
push 0x20
push edx
call fcn.10011e3e
lea eax, [esp + 0x1e0]
push eax
call fcn.100056c0
mov ebx, eax
lea ecx, [esp + 0x1e4]
push ebx
push edi
push ecx
call fcn.10005470
add esp, 0x20
test eax, eax
jne 0x1000dbc1
mov edi, dword [esp + 0x6f0]
mov edx, dword [esp + 0x14]
add esi, ebx
push edx
lea ecx, [edi + ebp]
lea eax, [esi + edi]
push eax
push ecx
call fcn.10005710
mov eax, dword [esp + 0x20]
push 2
add esi, eax
push 0x1002b634
add ebp, eax
lea edx, [esi + edi]
push edx
call fcn.10005470
add esp, 0x18
test eax, eax
jne 0x1000dbc1
mov eax, dword [esp + 0x14]
add esi, 2
test eax, eax
je 0x1000dbc1
mov eax, dword [esp + 0x18]
mov ebx, edi
cmp esi, eax
jl 0x1000db07
jmp 0x1000dbe9
mov ebx, dword [esp + 0x6f0]
mov edi, dword [esp + 0x18]
cmp esi, edi
jge 0x1000dbe9
mov eax, edi
lea ecx, [esi + ebx]
sub eax, esi
lea edx, [ebx + ebp]
push eax
push ecx
push edx
call fcn.10005710
sub edi, esi
add esp, 0xc
add ebp, edi
mov edi, dword [esp + 0x6ec]
mov eax, dword [esp + 0x6f4]
mov byte [ebx + ebp], 0
mov dword [eax], ebp
lea ecx, [esp + 0x24]
push ecx
call fcn.1000d160
add esp, 4
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [edi + 0x148]
mov edx, 1
sub edx, ecx
add eax, edx
mov dword [edi + 0x148], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c4
ret