Function at 0x419de0
Capabilities:
Initialize winhttp library
Prepare http request
Print debug messages
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x45a6d0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x45a6d0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
push 0x4530b0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [esp + 0x28]
push 0
mov ebx, eax
push 0x43b1ec
mov dword [esp + 0x28], ebx
call fcn.004028b2
test ebx, ebx
je 0x419eac
mov eax, dword [esi + 0x10]
push 4
mov ecx, str.http
mov edx, esi
call fcn.004090b0
test eax, eax
sete al
movzx edx, al
neg edx
sbb edx, edx
push 0
and edx, 0xfffffe95
add edx, 0x1bb
push edx
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x419eb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
jmp 0x41a0d5
mov eax, dword [esi + 0x10]
push 4
mov ecx, str.http
mov edx, esi
call fcn.004090b0
mov edx, dword [esp + 0x14]
test eax, eax
sete al
xor ecx, ecx
test al, al
setne cl
dec ecx
and ecx, 0x800000
push ecx
push 0
push 0
push 0
push edx
push 0x453144
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x419f10
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
xor al, al
jmp 0x41a0d5
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 0x419f4b
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
xor al, al
jmp 0x41a0d5
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
push 0x1f
push ebx
mov dword [esp + 0x3c], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
or dword [esp + 0x24], 0x3100
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x1f
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov esi, eax
test esi, esi
jne 0x419fdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
push 0x1fe
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x56]
push eax
mov word [esp + 0x58], dx
call fcn.00426cd0
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x5c]
push str.Error:_d_n
push edx
call fcn.0041dabc
add esp, 0x18
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41a0bd
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [esp + 0x14], eax
test eax, eax
je 0x41a0b9
mov dword [esp + 0x18], 0
lea esp, [esp]
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x41a0b9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41a0b9
lea edi, [eax + 1]
lea esi, [esp + 0x38]
call fcn.00416250
xor eax, eax
mov dword [esp + 0x260], eax
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
push eax
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41a0ac
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
lea ebx, [esi + ecx]
push eax
lea ecx, [esp + 0x50]
push ecx
mov eax, esi
call fcn.0041a100
xor edi, edi
add esp, 0xc
mov dword [esp + 0x260], 0xffffffff
cmp esi, edi
je 0x41a08d
push esi
call fcn.0041bfc5
add esp, 4
cmp dword [esp + 0x18], edi
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x1c]
jbe 0x41a0b9
jmp 0x41a000
lea esi, [esp + 0x38]
call fcn.004162a0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
push edi
call ebx
mov edx, dword [esp + 0x20]
push edx
call ebx
test esi, esi
setne al
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret