Function at 0x419b10
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x45a6d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
push 0
push 0
push 0
push 0
push 0x4530b0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp + 8]
push 0
mov ebx, eax
push 0x43b1ec
mov dword [esp + 0x20], ebx
call fcn.004028b2
test ebx, ebx
je 0x419bb1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
push 4
mov ecx, str.http
mov edx, esi
call fcn.004090b0
mov ecx, dword [ebp + 0x10]
test eax, eax
sete al
movzx eax, al
neg eax
sbb eax, eax
push 0
and eax, 0xfffffe95
add eax, 0x1bb
push eax
push ecx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x419bc6
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
push 4
mov ecx, str.http
mov edx, esi
call fcn.004090b0
test eax, eax
sete al
xor edx, edx
test al, al
mov eax, dword [ebp + 0x14]
setne dl
dec edx
and edx, 0x800000
push edx
push 0
push 0
push 0
push eax
push str.POST
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x419c30
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Content_Type:application_x_www_form_urlencoed_r_n
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x20000000
push eax
push str.Content_Type:application_x_www_form_urlencoed_r_n
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x419c79
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
push edi
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x18]
mov eax, dword [esi + 0x10]
push 0
push eax
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x419da4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x419cd5
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x20], 0
jb 0x419cb4
mov esi, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x419cd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x419da4
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x419da4
mov dword [esp + 0x10], 0
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x419da4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x419da4
lea edi, [eax + 1]
lea esi, [esp + 0x2c]
call fcn.00416250
xor eax, eax
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push ecx
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x419d97
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 8]
push eax
lea ebx, [esi + edx]
push ecx
lea edx, [esp + 0x30]
push edx
mov eax, esi
call fcn.0041a100
xor edi, edi
add esp, 0xc
mov dword [esp + 0x48], 0xffffffff
cmp esi, edi
je 0x419d78
push esi
call fcn.0041bfc5
add esp, 4
cmp dword [esp + 0x10], edi
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x14]
jbe 0x419da4
jmp 0x419cf2
lea esi, [esp + 0x2c]
call fcn.004162a0
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
push edi
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
cmp dword [esp + 0x1c], 0
setne al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret