Function at 0x405d30
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x42909c
mov eax, dword fs:[0]
push eax
sub esp, 0x99c
mov eax, dword [0x4322d0]
xor eax, esp
mov dword [esp + 0x998], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4322d0]
xor eax, esp
push eax
lea eax, [esp + 0x9b0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c0]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x9c8]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x9cc]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0xb8], edx
mov dword [esp + 0x20], ecx
xor ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
push 0x7ff
lea edx, [esp + 0x1b1]
push ebx
mov dword [esp + 0x9c0], ebx
push edx
mov byte [esp + 0x1b8], bl
call fcn.00418240
add esp, 0xc
lea eax, [esp + 0xec]
push eax
call fcn.00404210
mov byte [esp + 0x9b8], 1
jmp 0x405de8
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x50]
mov dword [ecx], ebx
mov ecx, ebp
mov dword [esp + 0x68], ebx
mov dword [esp + 0x24], ebx
mov dword [edx], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
xor edi, edi
call fcn.004027d0
mov esi, eax
call fcn.00405c80
mov dword [esp + 0x60], eax
cmp eax, 0xffffffff
jne 0x405e62
lea esp, [esp]
cmp edi, 5
jae 0x40686d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
inc edi
call fcn.004027d0
mov esi, eax
call fcn.00405c80
mov dword [esp + 0x60], eax
cmp eax, 0xffffffff
je 0x405e30
jmp 0x405e62
xor ebx, ebx
push ebx
push 1
push 2
call sub.WSOCK32.dll_socket
mov ebp, eax
mov dword [esp + 0x58], ebp
cmp ebp, 0xffffffff
je 0x4068ab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x9c4]
mov ecx, dword [esp + 0x60]
mov eax, 2
push edx
mov word [esp + 0xe0], ax
mov dword [esp + 0xe4], ecx
call sub.WSOCK32.dll_htons
push 4
mov word [esp + 0xe2], ax
lea eax, [esp + 0x34]
push eax
push 0x1005
push 0xffff
push ebp
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x44], 0x2710
call sub.WSOCK32.dll_setsockopt
mov eax, dword [esp + 0x18]
cmp eax, ebx
jle 0x405efe
push 4
imul eax, eax, 0x3e8
lea ecx, [esp + 0x1c]
push ecx
push 0x1006
push 0xffff
push ebp
mov dword [esp + 0x2c], eax
call sub.WSOCK32.dll_setsockopt
push 2
lea edi, [esp + 0xe0]
mov esi, ebp
call fcn.00405780
add esp, 4
cmp eax, 0xffffffff
jne 0x405f6a
mov edx, dword [esp + 0x1c]
cmp dword [edx], ebx
je 0x405f42
cmp dword [esp + 0x34], 5
jae 0x40689a
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x34]
call fcn.00405760
jmp 0x405e62
mov eax, dword [esp + 0x20]
mov esi, ebp
mov dword [eax], ebx
call fcn.00405760
cmp dword [esp + 0x38], 5
jae 0x4068ab
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x38]
jmp 0x405e62
push str.Accept:__r_nAccept_Encoding:_deflate_r_nAccept_Language:zh_cn_r_nContent_Type_r_nAccept_Encoding_r_nReferer_r_nUser_Agent:Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__r_nHost_r_nRange:_r_nContent_Length_r_nConnection:Close_r_nCache_Control:no_cache_r_nCookie
lea ecx, [esp + 0xf0]
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
call fcn.00404430
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x42cb44]
mov byte [esp + eax + 0xf4], cl
inc eax
cmp cl, bl
jne 0x405f90
mov edx, dword [esp + 0x64]
push 0xffffffffffffffff
push ebx
push edx
lea ecx, [esp + 0x10c]
mov dword [esp + 0xfc], ebx
call fcn.004028a0
lea eax, [esp + 0xa4]
push eax
push str.User_Agent
lea ecx, [esp + 0xf4]
push ecx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
call fcn.00404370
test al, al
je 0x406021
mov eax, dword [esp + 0xa4]
cmp eax, ebx
jne 0x40601d
call fcn.0041360a
xor eax, eax
mov esi, dword [esp + 0xa8]
cmp esi, dword [eax + 0x10]
jb 0x40600c
call fcn.0041360a
push 0x4c
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_2.0.50727__
lea ecx, [esi + 0x1c]
call fcn.00402bb0
jmp 0x406037
mov eax, dword [eax]
jmp 0x405ffb
mov edi, str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_2.0.50727__
mov edx, str.User_Agent
lea ecx, [esp + 0xec]
call fcn.00404640
mov ecx, dword [esp + 0x50]
call fcn.004027d0
lea edx, [esp + 0x94]
push edx
mov edi, eax
push str.Host
lea eax, [esp + 0xf4]
push eax
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call fcn.00404370
test al, al
je 0x4060af
mov eax, dword [esp + 0x94]
cmp eax, ebx
jne 0x4060ab
call fcn.0041360a
xor eax, eax
mov esi, dword [esp + 0x98]
cmp esi, dword [eax + 0x10]
jb 0x406091
call fcn.0041360a
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406096
sub eax, edx
push eax
push edi
lea ecx, [esi + 0x1c]
call fcn.00402bb0
jmp 0x4060c0
mov eax, dword [eax]
jmp 0x406080
mov edx, str.Host
lea ecx, [esp + 0xec]
call fcn.00404640
lea ecx, [esp + 0x84]
push ecx
push str.Cache_Control
lea edx, [esp + 0xf4]
push edx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call fcn.00404370
test al, al
je 0x406124
mov eax, dword [esp + 0x84]
cmp eax, ebx
jne 0x406120
call fcn.0041360a
xor eax, eax
mov esi, dword [esp + 0x88]
cmp esi, dword [eax + 0x10]
jb 0x40610f
call fcn.0041360a
push 8
push str.no_cache
lea ecx, [esi + 0x1c]
call fcn.00402bb0
jmp 0x40613a
mov eax, dword [eax]
jmp 0x4060fe
mov edi, str.no_cache
mov edx, str.Cache_Control
lea ecx, [esp + 0xec]
call fcn.00404640
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
cmp eax, ebx
jbe 0x4061e0
push eax
lea ecx, [esp + 0x17c]
push str.bytes_d_
push ecx
call fcn.004136aa
add esp, 0xc
lea edx, [esp + 0x6c]
push edx
push str.Range
lea eax, [esp + 0xf4]
push eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call fcn.00404370
test al, al
je 0x4061c8
mov eax, dword [esp + 0x6c]
cmp eax, ebx
jne 0x4061c4
call fcn.0041360a
xor eax, eax
mov esi, dword [esp + 0x70]
cmp esi, dword [eax + 0x10]
jb 0x40619e
call fcn.0041360a
lea eax, [esp + 0x178]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4061a8
sub eax, edx
push eax
lea ecx, [esp + 0x17c]
push ecx
lea ecx, [esi + 0x1c]
call fcn.00402bb0
jmp 0x4061e0
mov eax, dword [eax]
jmp 0x406190
lea edi, [esp + 0x178]
mov edx, str.Range
lea ecx, [esp + 0xec]
call fcn.00404640
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0xec]
push edx
mov dword [esp + 0x34], eax
call fcn.00404770
mov ebx, dword [esp + 0x14c]
push eax
push ebp
call fcn.004056e0
add esp, 8
test al, al
jne 0x406219
mov dword [esp + 0x18], 0xb
jmp 0x40660f
xor ebp, ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x4c], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x406247
mov esi, dword [eax + 0x10]
push eax
call fcn.00413ee7
add esp, 4
mov eax, esi
cmp esi, ebp
jne 0x406235
mov ecx, dword [esp + 0x58]
xor eax, eax
push ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
push 0x800
lea eax, [esp + 0x1b4]
push eax
push ecx
call sub.WSOCK32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
je 0x4065ec
lea esp, [esp]
test esi, esi
je 0x4065f6
test ebp, ebp
jne 0x406564
lea edx, [esp + 0x1ac]
push esi
push edx
lea edi, [esp + 0x44]
call fcn.00405520
mov ebx, edi
call fcn.004055d0
mov esi, eax
push str._r_n_r_n
push esi
call fcn.00413370
xor ebx, ebx
add esp, 0x10
cmp eax, ebx
je 0x4065c1
add eax, 2
mov byte [eax], bl
mov byte [eax + 1], bl
add eax, 2
sub eax, esi
mov dword [esp + 0xb4], eax
push esi
lea eax, [esp + 0xf0]
push eax
call fcn.00404430
mov edi, dword [esp + 0x154]
mov dword [esp + 0x18], edi
cmp dword [esp + 0x28], ebx
jne 0x4063f3
lea ecx, [esp + 0x74]
push ecx
push str.Accept_Ranges
lea edx, [esp + 0xf4]
push edx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
call fcn.00404370
test al, al
je 0x406358
mov eax, dword [esp + 0x74]
cmp eax, ebx
jne 0x40634f
call fcn.0041360a
xor eax, eax
mov esi, dword [esp + 0x78]
cmp esi, dword [eax + 0x10]
jb 0x406340
call fcn.0041360a
mov ebp, 0x10
cmp dword [esi + 0x34], ebp
jb 0x406353
mov eax, dword [esi + 0x20]
jmp 0x40635d
mov eax, dword [eax]
jmp 0x406332
lea eax, [esi + 0x20]
jmp 0x40635d
xor eax, eax
lea ebp, [eax + 0x10]
xor ecx, ecx
cmp eax, ebx
setne cl
mov eax, ecx
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x4063f8
lea edx, [esp + 0x7c]
push edx
push str.Content_Range
lea eax, [esp + 0xf4]
push eax
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.00404370
test al, al
je 0x4063e4
mov eax, dword [esp + 0x7c]
cmp eax, ebx
jne 0x4063d0
call fcn.0041360a
xor eax, eax
mov esi, dword [esp + 0x80]
cmp esi, dword [eax + 0x10]
jb 0x4063bb
call fcn.0041360a
cmp dword [esi + 0x34], ebp
jb 0x4063d4
mov eax, dword [esi + 0x20]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esp + 0x28], ecx
jmp 0x4063f8
mov eax, dword [eax]
jmp 0x4063aa
xor ecx, ecx
lea eax, [esi + 0x20]
cmp eax, ebx
setne cl
mov dword [esp + 0x28], ecx
jmp 0x4063f8
xor ecx, ecx
xor eax, eax
cmp eax, ebx
setne cl
mov dword [esp + 0x28], ecx
jmp 0x4063f8
mov ebp, 0x10
lea edx, [esp + 0x8c]
push edx
push str.Content_Length
lea eax, [esp + 0xf4]
push eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
call fcn.00404370
test al, al
je 0x40648e
mov eax, dword [esp + 0x8c]
cmp eax, ebx
jne 0x406451
call fcn.0041360a
xor eax, eax
mov esi, dword [esp + 0x90]
cmp esi, dword [eax + 0x10]
jb 0x406447
call fcn.0041360a
cmp dword [esi + 0x34], ebp
jb 0x406455
mov eax, dword [esi + 0x20]
jmp 0x406458
mov eax, dword [eax]
jmp 0x406436
lea eax, [esi + 0x20]
cmp eax, ebx
je 0x40648e
push 0xa
push ebx
push eax
call fcn.00414256
add esp, 0xc
mov dword [esp + 0x4c], eax
cmp edi, 0xc8
jne 0x40648e
cmp eax, ebx
je 0x40648e
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
jne 0x406486
mov dword [esp + 0x24], eax
jmp 0x40648e
cmp ecx, eax
jne 0x406607
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], ebx
je 0x40650b
lea edx, [esp + 0x9c]
push edx
push str.Content_Range
lea eax, [esp + 0xf4]
push eax
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
call fcn.00404370
test al, al
je 0x40650b
mov eax, dword [esp + 0x9c]
cmp eax, ebx
jne 0x4064ef
call fcn.0041360a
xor eax, eax
mov esi, dword [esp + 0xa0]
cmp esi, dword [eax + 0x10]
jb 0x4064e5
call fcn.0041360a
cmp dword [esi + 0x34], ebp
jb 0x4064f3
mov eax, dword [esi + 0x20]
jmp 0x4064f6
mov eax, dword [eax]
jmp 0x4064d4
lea eax, [esi + 0x20]
cmp eax, ebx
je 0x40650b
lea ecx, [esp + 0x24]
push ecx
call fcn.00405b30
add esp, 4
mov dword [esp + 0x4c], eax
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0xb4]
sub esi, eax
je 0x406533
lea edx, [esp + eax + 0x1ac]
push esi
push edx
lea eax, [esp + 0x1b4]
push eax
call fcn.00414290
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov ebp, 1
cmp eax, ebx
je 0x406552
mov edi, dword [eax + 0x10]
push eax
call fcn.00413ee7
add esp, 4
mov eax, edi
cmp edi, ebx
jne 0x406540
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
test esi, esi
je 0x4065a0
mov eax, dword [esp + 0x18]
cmp eax, 0xc8
je 0x40657a
cmp eax, 0xce
jne 0x40659c
mov edi, dword [esp + 0xb8]
test edi, edi
je 0x406596
lea ecx, [esp + 0x1ac]
push esi
push ecx
call fcn.00405520
add esp, 8
mov eax, dword [esp + 0x1c]
add dword [eax], esi
add dword [esp + 0x5c], esi
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4065ae
cmp dword [esp + 0x5c], eax
jae 0x40660f
cmp dword [esp + 0x24], 0
je 0x4065c1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
cmp dword [eax], edx
jae 0x40660f
mov edx, dword [esp + 0x58]
push 0
push 0x800
lea ecx, [esp + 0x1b4]
push ecx
push edx
call sub.WSOCK32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
jne 0x406280
cmp dword [esp + 0x18], 0
jne 0x40660f
mov dword [esp + 0x18], 0xd
jmp 0x40660f
cmp dword [esp + 0x18], 0
jne 0x40660f
mov dword [esp + 0x18], 0xe
jmp 0x40660f
mov dword [esp + 0x18], 0x136
mov esi, dword [esp + 0x58]
call fcn.00405760
mov eax, dword [esp + 0x18]
cmp eax, 0x12d
je 0x40663a
cmp eax, 0x12e
je 0x40663a
cmp eax, 0x136
je 0x405de6
jmp 0x40676e
xor eax, eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xac]
push eax
push str.Location
lea ecx, [esp + 0xf4]
push ecx
call fcn.00404370
test al, al
je 0x40676e
mov eax, dword [esp + 0xac]
test eax, eax
jne 0x40669a
call fcn.0041360a
xor eax, eax
mov esi, dword [esp + 0xb0]
cmp esi, dword [eax + 0x10]
jb 0x40668f
call fcn.0041360a
cmp dword [esi + 0x34], 0x10
jb 0x40669e
mov ecx, dword [esi + 0x20]
jmp 0x4066a1
mov eax, dword [eax]
jmp 0x40667e
lea ecx, [esi + 0x20]
test ecx, ecx
je 0x40676e
mov edi, 0xf
xor esi, esi
mov dword [esp + 0x190], edi
mov dword [esp + 0x18c], esi
mov byte [esp + 0x17c], 0
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], esi
mov byte [esp + 0xc4], 0
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0xc4]
push eax
lea edx, [esp + 0x180]
mov ebx, 3
push edx
lea eax, [esp + 0xc8]
mov byte [esp + 0x9c4], bl
call fcn.00405a30
add esp, 0xc
cmp dword [esp + 0xbc], ebx
je 0x4067db
mov ebx, 0x10
cmp dword [esp + 0xd8], ebx
jb 0x406737
mov eax, dword [esp + 0xc4]
push eax
call fcn.00412ddf
add esp, 4
mov byte [esp + 0x9b8], 1
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], esi
mov byte [esp + 0xc4], 0
cmp dword [esp + 0x190], ebx
jb 0x40676e
mov ecx, dword [esp + 0x17c]
push ecx
call fcn.00412ddf
add esp, 4
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4068d9
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
cmp eax, ecx
jae 0x4068af
cmp dword [esp + 0x28], 0
je 0x4068af
cmp dword [esp + 0x2c], 0xa
jae 0x4068af
cmp dword [esp + 0x68], eax
ja 0x4067aa
inc dword [esp + 0x2c]
jmp 0x4067b6
mov dword [esp + 0x2c], 0
mov dword [esp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x30]
cmp eax, 0x3e8
jae 0x405e60
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405e60
mov ecx, dword [esp + 0x50]
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x180]
push edx
call fcn.004028a0
mov ecx, dword [esp + 0x64]
push 0xffffffffffffffff
push esi
lea eax, [esp + 0xc8]
push eax
call fcn.004028a0
movzx ecx, word [esp + 0x54]
mov ebx, 0x10
mov dword [esp + 0x9c4], ecx
cmp dword [esp + 0xd8], ebx
jb 0x40682d
mov edx, dword [esp + 0xc4]
push edx
call fcn.00412ddf
add esp, 4
mov byte [esp + 0x9b8], 1
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], esi
mov byte [esp + 0xc4], 0
cmp dword [esp + 0x190], ebx
jb 0x405de6
mov eax, dword [esp + 0x17c]
push eax
call fcn.00412ddf
add esp, 4
jmp 0x405de6
lea ecx, [esp + 0xec]
call fcn.004042c0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x406893
mov esi, dword [eax + 0x10]
push eax
call fcn.00413ee7
add esp, 4
mov eax, esi
cmp esi, ebx
jne 0x406881
xor eax, eax
jmp 0x406919
mov ecx, dword [esp + 0x20]
mov esi, ebp
mov dword [ecx], 0xa
call fcn.00405760
xor esi, esi
jmp 0x4068f1
xor eax, eax
cmp dword [edx], ecx
sete al
xor ebx, ebx
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, 0xce
jne 0x4068d1
mov ecx, dword [esp + 0x20]
mov dword [ecx], 0xc8
jmp 0x4068f1
mov edx, dword [esp + 0x20]
mov dword [edx], eax
jmp 0x4068f1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
xor edx, edx
cmp edx, dword [eax]
sbb esi, esi
neg esi
xor ebx, ebx
lea ecx, [esp + 0xec]
call fcn.004042c0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x406917
mov edi, dword [eax + 0x10]
push eax
call fcn.00413ee7
add esp, 4
mov eax, edi
cmp edi, ebx
jne 0x406905
mov eax, esi
mov ecx, dword [esp + 0x9b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x998]
xor ecx, esp
call fcn.00412dd0
add esp, 0x9a8
ret