Function at 0x422056
Capabilities:
Check http status code
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x24c4
call fcn.004db570
mov eax, dword [0x667710]
xor eax, esp
mov dword [esp + 0x24c0], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x18], ecx
cmp dword [edi + 4], 0
jne 0x422390
and dword [edi + 0x1c], 0
push ecx
push ecx
lea ecx, [esp + 0x28]
call fcn.0041d625
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.0041d674
test eax, eax
je 0x422390
xor esi, esi
push esi
push esi
push 3
push dword [esp + 0x50]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x48]
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi + 4], eax
test eax, eax
je 0x422390
or ebx, 0x400000
mov dword [esp + 0x24ac], 0x637a24
lea ecx, [esp + 0x20]
mov dword [esp + 0x24b0], 0x637a38
mov dword [esp + 0x24b4], 0x637a58
mov dword [esp + 0x24b8], 0x637a6c
mov dword [esp + 0x24bc], 0x637a84
mov dword [esp + 0x24c0], 0x637a98
mov dword [esp + 0x24c4], 0x637aac
mov dword [esp + 0x24c8], esi
cmp dword [edi + 0x14], esi
je 0x422194
lea eax, [esp + 0x10]
push eax
call fcn.0041d6dd
lea ecx, [esp + 0x20]
mov esi, dword [eax]
lea eax, [esp + 0xc]
push eax
call fcn.0041d73e
push edi
push ebx
push 0
push esi
push 0
push dword [eax]
push 0x636720
push dword [edi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [esp + 0xc]
mov esi, 0x668010
add ecx, 0xfffffff4
mov dword [edi + 8], eax
cmp ecx, esi
je 0x42218e
call fcn.00407965
mov ecx, dword [esp + 0x10]
jmp 0x4221e7
lea eax, [esp + 0xc]
push eax
call fcn.0041d6dd
lea ecx, [esp + 0x20]
mov esi, dword [eax]
lea eax, [esp + 0x10]
push eax
call fcn.0041d73e
push edi
push ebx
lea ecx, [esp + 0x24b4]
push ecx
push esi
push 0
push dword [eax]
push 0x636720
push dword [edi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [esp + 0x10]
mov esi, 0x668010
add ecx, 0xfffffff4
mov dword [edi + 8], eax
cmp ecx, esi
je 0x4221e3
call fcn.00407965
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x4221f3
call fcn.00407965
cmp dword [edi + 8], 0
je 0x422389
xor esi, esi
lea ebx, [edi + 0x1c]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42221b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x422389
push 0
push 0
push dword [ebp + 0x10]
push dword [esp + 0x28]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x42227d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov edx, 0x3e5
cmp eax, edx
setne cl
jne 0x422275
push dword [edi + 0x18]
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0
push eax
xor eax, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
setne al
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
neg eax
sbb ecx, ecx
neg ecx
test ecx, ecx
jne 0x422389
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
push ebx
push 0x20000013
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x422379
cmp dword [ebx], 0x12e
je 0x422344
cmp dword [ebx], 0x197
jne 0x422303
test esi, esi
jne 0x42237c
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4222dd
lea eax, [eax*2 + 2]
push eax
push ecx
push 0x2b
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4222fb
lea eax, [eax*2 + 2]
push eax
push ecx
push 0x2c
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
xor esi, esi
inc esi
jmp 0x422202
cmp dword [ebx], 0x191
jne 0x42237c
test esi, esi
jne 0x42237c
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx - 8]
test eax, eax
je 0x42232d
lea eax, [eax*2 + 2]
push eax
push ecx
push 0x1c
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4222fb
lea eax, [eax*2 + 2]
push eax
push ecx
push 0x1d
jmp 0x4222f2
push 0
lea eax, [esp + 0x10]
mov ecx, 0x400
push eax
mov dword [esp + 0x14], ecx
push ecx
lea ecx, [edi + 0x28]
call fcn.0040ceb7
push eax
push 0x21
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x42237c
push 0xffffffffffffffff
lea ecx, [edi + 0x28]
call fcn.0040ce81
jmp 0x42237c
and dword [ebx], 0
cmp dword [ebx], 0x190
jae 0x422389
mov eax, dword [edi + 8]
jmp 0x422392
mov ecx, edi
call fcn.0041d9b7
xor eax, eax
mov ecx, dword [esp + 0x24cc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004da623
mov esp, ebp
pop ebp
ret 0x14