Function at 0x436d36
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push 0x194
mov eax, 0x522fda
call fcn.004dacdd
mov edi, ecx
mov dword [ebp - 0xc4], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov bl, byte [ebp + 0x24]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [edx]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xcc], eax
mov eax, dword [ecx]
push 1
push dword [edx + 4]
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xec], edx
mov byte [ebp - 0xbd], bl
call dword [eax]
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [esi + 0x10], eax
mov ecx, 0x3100
cmova eax, ecx
and dword [ebp - 0x18], 0
mov dword [ebp - 0xe4], eax
xor eax, eax
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
mov esi, dword [ebp + 0x1c]
test bl, bl
jne 0x436e36
lea ecx, [ebp - 0xa4]
test esi, esi
je 0x436e19
call fcn.0044e6c8
push eax
lea ecx, [ebp - 0x28]
call fcn.0042ab1f
push 0
push 1
lea ecx, [ebp - 0xa4]
call fcn.0042ab9c
cmp esi, 2
jne 0x436e36
mov edx, 0x69a0fc
lea ecx, [ebp - 0x28]
call fcn.00438393
test al, al
je 0x436e36
jmp 0x43725f
call fcn.0044e4e4
push eax
lea ecx, [ebp - 0x28]
call fcn.0042ab1f
push 0
push 1
lea ecx, [ebp - 0xa4]
call fcn.0042ab9c
push dword [ebp - 0xd0]
lea ecx, [ebp - 0x40]
call fcn.004293e6
push 1
push 0
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0xd8], 0x3f
call fcn.00436159
cmp eax, 0xffffffff
je 0x436e75
push 0
push eax
lea ecx, [ebp - 0x40]
call fcn.004360f8
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
xor eax, eax
cmp dword [ebp - 0x18], eax
setne al
push eax
push esi
push ecx
push 0x69d4b8
push str._s:__s__proxy:_use:__d__set:__d
push 1
push 0
call fcn.0043ceb9
mov eax, dword [ebp - 0x18]
add esp, 0x1c
test eax, eax
je 0x436eb5
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
jmp 0x436eb7
xor ecx, ecx
push 0x10000000
neg eax
push 0
sbb eax, eax
push ecx
and eax, 3
push eax
push str.Mozilla_4.0__compatible__MSIE_5.22_
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0xd8], esi
mov byte [ebp - 4], 2
test esi, esi
jne 0x436f0f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
movzx eax, byte [edi + 4]
xor ebx, ebx
push str.WinHttpOpen_failed___d_
push eax
push ebx
call fcn.0043ceb9
add esp, 0x10
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.0042ab9c
push ebx
jmp 0x437261
mov eax, 0x7530
push eax
push eax
push eax
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x436f49
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.WinHttpSetTimeouts_failed___d_
movzx eax, byte [edi + 4]
xor ebx, ebx
push eax
push ebx
call fcn.0043ceb9
add esp, 0x10
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x436efe
mov dword [ebp - 0xe0], 0x800
test bl, bl
jne 0x436f7b
push 4
lea eax, [ebp - 0xe0]
push eax
push 0x54
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x436f7b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.WinHttpSetOption_WINHTTP_OPTION_SECURE_PROTOCOLS_failed___d_
jmp 0x436f30
push 0
push dword [ebp + 0xc]
push dword [ebp - 0xdc]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0xdc], ebx
mov byte [ebp - 4], 3
test ebx, ebx
jne 0x436fab
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.WinHttpConnect_failed___d_
jmp 0x436f30
mov ecx, dword [ebp - 0xcc]
test ecx, ecx
jne 0x436fcb
cmp dword [ebp - 0xd4], 0
mov ecx, 0x69d6d0
mov eax, str.POST
cmove eax, ecx
mov ecx, eax
xor edx, edx
mov eax, 0x800000
cmp byte [ebp - 0xbd], dl
cmovne eax, edx
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0xd0]
push ecx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0xd0], edi
mov byte [ebp - 4], 4
test edi, edi
jne 0x43702a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0xc4]
push eax
push str.WinHttpOpenRequest_failed___d_
movzx eax, byte [ecx + 4]
push eax
push edi
call fcn.0043ceb9
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 0x10
jmp 0x43724d
push 4
lea eax, [ebp - 0xe4]
push eax
push 0x1f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x437066
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.WinHttpSetOption_WINHTTP_OPTION_SECURITY_FLAGS_failed___d_
mov ecx, dword [ebp - 0xc4]
movzx eax, byte [ecx + 4]
push eax
push 0
call fcn.0043ceb9
add esp, 0x10
jmp 0x437244
push 0
push 0xffffffffffffffff
push 0x43652f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x437089
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.WinHttpSetStatusCallback_failed___d_
jmp 0x43704c
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov ecx, dword [ebp - 0xc4]
mov dword [ecx + 0xc], eax
test eax, eax
jne 0x437132
push ecx
push ecx
lea ecx, [ebp - 0x1a0]
call fcn.00427a5f
push str.:_CreateEvent_failed._Out_of_memory
push ecx
push 0x240
push ecx
push 0x543c44
push ecx
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 5
push str.HTTPSRequest::MakeRequestWithURLProxyOption
push eax
call fcn.0041ce20
add esp, 0xc
push eax
call fcn.0041ce20
add esp, 0xc
mov ecx, eax
call fcn.004187ea
pop ecx
push eax
call fcn.0041ce20
pop ecx
pop ecx
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.00427a14
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x437115
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x98]
call fcn.0041231b
push 0x6c54c0
lea eax, [ebp - 0x98]
push eax
call fcn.004f3e1a
push str.Connection:_close_r_n
lea ecx, [ebp - 0x58]
call fcn.004293e6
mov eax, dword [ebp - 0xc8]
mov byte [ebp - 4], 7
test eax, eax
je 0x437164
push eax
call fcn.004293bf
pop ecx
push eax
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x58]
push eax
call fcn.00428026
mov eax, dword [ebp - 0xc4]
mov edx, dword [ebp - 0xe8]
lea ecx, [eax + 0x14]
cmp ecx, edx
je 0x437187
push 0xffffffffffffffff
push 0
push edx
call fcn.0041a570
mov eax, dword [ebp - 0xc4]
or dword [ebp - 0x8c], 0xffffffff
xor ecx, ecx
mov byte [eax + 0x10], cl
add eax, 0x2c
push 0xf
pop edx
mov dword [ebp - 0x78], ecx
mov byte [ebp - 0x88], cl
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0x70], cl
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0xc8], eax
call fcn.004373e6
lea ecx, [ebp - 0x8c]
call fcn.0042667e
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push ecx
push dword [ebp + 0x30]
cmovae eax, dword [ebp - 0x58]
push dword [ebp + 0x30]
push dword [ebp - 0xd4]
push dword [ebp - 0x48]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
mov eax, dword [ebp - 0xc4]
jne 0x437290
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xc4]
and dword [eax + 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov eax, dword [ebp - 0xc4]
push str.WinHttpSendRequest_failed___d_
movzx eax, byte [eax + 4]
push eax
push 0
call fcn.0043ceb9
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.0042ab9c
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push ebx
call edi
push esi
call edi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0042ab9c
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0042ab9c
xor al, al
call fcn.004dac87
ret 0x30
mov edx, dword [ebp - 0xec]
push 0
mov ecx, dword [edx]
push dword [edx + 4]
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jne 0x4372e7
mov eax, dword [ebp - 0xc4]
push 0x64
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x437275
test eax, eax
je 0x43732b
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [ebp - 0xc4]
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [edi + 0xc], 0
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.0042ab9c
mov byte [ebp - 0xbd], 0
jmp 0x4373b7
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
mov eax, dword [ebp - 0xc4]
push 0xffffffffffffffff
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [ebp - 0xc4]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0x58]
push 0
push 1
and dword [eax + 0xc], 0
call fcn.0042ab9c
jmp 0x43724d
mov eax, dword [ebp - 0xc4]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xc4]
and dword [eax + 0xc], 0
cmp byte [eax + 0x10], 0
je 0x437238
push dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xf0]
call fcn.004373e6
or dword [ebp - 0x8c], 0xffffffff
xor eax, eax
push 0xf
pop ecx
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x88], al
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x70], al
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0xc8]
push eax
call fcn.004373e6
lea ecx, [ebp - 0x8c]
call fcn.0042667e
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.0042ab9c
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 0xbd], 1
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
push esi
call ebx
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0042ab9c
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0042ab9c
mov al, byte [ebp - 0xbd]
jmp 0x43726d