Function at 0x10021fe0
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x10051323
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100638a4]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xa4]
xor ebp, ebp
push ebp
xor eax, eax
mov edi, 7
push 0x1005b784
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebp
mov word [esp + 0x40], ax
call fcn.10009330
xor ecx, ecx
push ebp
mov word [esp + 0x20], cx
push 0x1005b784
lea ecx, [esp + 0x20]
mov dword [esp + 0xa4], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebp
call fcn.10009330
push ebp
push ebp
push ebp
push ebp
push ebp
mov byte [esp + 0xb0], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
cmp esi, ebp
jne 0x100220de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpen_Error:_d
push 1
push 0x10069158
call fcn.10017d90
mov esi, 8
add esp, 0x10
cmp dword [esp + 0x30], esi
jb 0x100220b5
mov edx, dword [esp + 0x1c]
push edx
call fcn.100386ec
add esp, 4
xor eax, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
mov word [esp + 0x1c], ax
cmp dword [esp + 0x4c], esi
jb 0x100220d7
mov ecx, dword [esp + 0x38]
push ecx
call fcn.100386ec
add esp, 4
xor eax, eax
jmp 0x10022294
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.10021ed0
add esp, 8
cmp eax, 1
jne 0x1002211e
mov ecx, dword [esp + 0x1c]
mov eax, 8
cmp dword [esp + 0x30], eax
jae 0x10022108
lea ecx, [esp + 0x1c]
cmp dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
jae 0x10022116
lea eax, [esp + 0x38]
push ebp
push ebp
push 3
push ecx
push eax
jmp 0x10022124
push ebp
push ebp
push 3
push ebp
push ebp
push 0x50
push str.pdown.stat.360safe.com
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
cmp edi, ebp
jne 0x100221a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetConnect_Error:_d
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x10
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x10022172
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100386ec
add esp, 4
xor edx, edx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebp
mov word [esp + 0x1c], dx
cmp dword [esp + 0x4c], esi
jb 0x100220d7
mov eax, dword [esp + 0x38]
push eax
call fcn.100386ec
add esp, 4
xor eax, eax
jmp 0x10022294
push ebp
push 0x8440c100
push ebp
push ebp
push str.HTTP_1.1
push ebx
push 0x10055ce8
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
cmp ebx, ebp
jne 0x10022203
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpOpenRequest_Error:_d
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x10
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x18]
call fcn.10010e30
lea ecx, [esp + 0x34]
call fcn.10010e30
xor eax, eax
jmp 0x10022294
push ebp
push ebp
push ebp
push ebp
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x10022252
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpSendRequest_Error:_d
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x10
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
push ebx
call esi
lea ecx, [esp + 0x18]
call fcn.10010e30
lea ecx, [esp + 0x34]
call fcn.10010e30
xor eax, eax
jmp 0x10022294
push ebp
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x58]
push edx
push 0x13
push ebx
mov dword [esp + 0x28], 0x40
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push edi
call ebx
push esi
call ebx
lea ecx, [esp + 0x18]
call fcn.10010e30
lea ecx, [esp + 0x34]
call fcn.10010e30
mov eax, 1
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.10038723
add esp, 0x8c
ret 8