Function at 0x40a910
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov eax, 0x22020
call fcn.0040ce80
push ebx
mov ebx, dword [esp + 0x22028]
push ebp
push esi
mov eax, dword [ebx + 0x20]
push edi
mov ecx, eax
lea esi, [ebx + 0xa4]
mov edx, ecx
lea edi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x20
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x34], 0
lea eax, [esp + 0x14]
push eax
push 0x41ebdc
lea ecx, [esp + 0x3c]
push 0
push ecx
call sym.Sure_XLite.exe__WS_XMLparm_20
lea edx, [esp + 0x10]
push str.setup
push edx
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40a98c
lea eax, [esp + 0x2030]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.004087d0
jmp 0x40abde
lea edx, [esp + 0x10]
push str.download
push edx
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40a9b9
lea eax, [esp + 0x2030]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00408d30
jmp 0x40abde
lea edx, [esp + 0x10]
push str.cancel
push edx
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40a9e4
lea eax, [esp + 0x2030]
push eax
call fcn.00409a10
add esp, 4
jmp 0x40abe1
lea ecx, [esp + 0x10]
push str.cancelu
push ecx
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40aa0f
lea edx, [esp + 0x2030]
push edx
call fcn.00409a40
add esp, 4
jmp 0x40abe1
lea eax, [esp + 0x10]
push str.clear
push eax
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40aa3a
lea ecx, [esp + 0x2030]
push ecx
call fcn.00409a70
add esp, 4
jmp 0x40abe1
lea edx, [esp + 0x10]
push str.clearu
push edx
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40aa65
lea eax, [esp + 0x2030]
push eax
call fcn.00409ac0
add esp, 4
jmp 0x40abe1
lea ecx, [esp + 0x10]
push str.statdownload
push ecx
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40aa90
lea edx, [esp + 0x2030]
push edx
call fcn.004094f0
add esp, 4
jmp 0x40abe1
lea eax, [esp + 0x10]
push str.statupload
push eax
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40aabb
lea ecx, [esp + 0x2030]
push ecx
call fcn.00409580
add esp, 4
jmp 0x40abe1
lea edx, [esp + 0x10]
push str.statqueue
push edx
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40aae6
lea eax, [esp + 0x2030]
push eax
call fcn.00409000
add esp, 4
jmp 0x40abe1
lea ecx, [esp + 0x10]
push str.statlog
push ecx
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40ab11
lea edx, [esp + 0x2030]
push edx
call fcn.004091a0
add esp, 4
jmp 0x40abe1
lea eax, [esp + 0x10]
push str.statuplog
push eax
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40ab3c
lea ecx, [esp + 0x2030]
push ecx
call fcn.00409350
add esp, 4
jmp 0x40abe1
lea edx, [esp + 0x10]
push str.statalld
push edx
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40ab64
lea eax, [esp + 0x2030]
push eax
call fcn.004095a0
add esp, 4
jmp 0x40abe1
lea ecx, [esp + 0x10]
push str.statallu
push ecx
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40ab8c
lea edx, [esp + 0x2030]
push edx
call fcn.00409b10
add esp, 4
jmp 0x40abe1
lea eax, [esp + 0x10]
push str.folders
push eax
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40abb6
lea ecx, [esp + 0x2030]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.0040af70
jmp 0x40abde
lea eax, [esp + 0x10]
push str.chkcache
push eax
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x40abe1
lea ecx, [esp + 0x2030]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.0040ad40
add esp, 8
lea edi, [esp + 0x2030]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x12030]
push ecx
push str.HTTP_1.1_200_OK_r_nAccess_Control_Allow_Origin:__r_nContent_Type:_text_plain__charset_utf_8__r_nContent_Length:__d_r_n_r_n
push eax
call fcn.0040d799
lea edi, [esp + 0x203c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x12030]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x12034]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x12034]
push ecx
mov ecx, dword [ebx + 0x14]
push eax
push ecx
call sub.WSOCK32.dll_send
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22020
ret