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

Disassembly:
push 0x14c
mov eax, 0x4ded43
call fcn.004b698d
mov edi, ecx
mov dword [ebp - 0x78], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [edx]
mov dword [ebp - 0xa8], eax
mov al, byte [ebp + 0x24]
mov byte [ebp - 0x71], al
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x7c], eax
mov eax, dword [ecx]
push 1
push dword [edx + 4]
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x90], esi
mov dword [ebp - 0xa4], edx
call dword [eax]
xor edx, edx
mov ecx, 0x3100
mov eax, edx
mov dword [ebp - 0xa0], edx
cmp dword [ebx + 0x10], eax
push edx
cmova eax, ecx
mov dword [ebp - 0x18], edx
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x14], edx
call fcn.0042889e
mov bl, byte [ebp + 0x20]
xor eax, eax
mov dword [ebp - 4], eax
cmp byte [ebp - 0x71], al
jne 0x431cf3
lea ecx, [ebp - 0x58]
test bl, bl
je 0x431cd8
call fcn.00444b2d
jmp 0x431cdd
call fcn.00444a13
push eax
lea ecx, [ebp - 0x28]
call fcn.004287de
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
push 1
call fcn.0042889e
push esi
lea ecx, [ebp - 0x40]
call fcn.00426fde
push 1
xor esi, esi
mov byte [ebp - 4], 1
push esi
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x3f
push eax
lea ecx, [ebp - 0x40]
call fcn.0043353b
cmp eax, 0xffffffff
je 0x431d2d
push esi
push eax
lea ecx, [ebp - 0x40]
call fcn.004314a3
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
movzx eax, bl
xor ebx, ebx
push eax
push ecx
push 0x646410
push str._s:__s__proxy:_use:__d__set:__d
push 1
push ebx
call fcn.00438d22
mov eax, dword [ebp - 0x18]
add esp, 0x1c
test eax, eax
je 0x431d71
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
jmp 0x431d73
mov ecx, ebx
push 0x10000000
neg eax
push ebx
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 - 0x88], esi
mov byte [ebp - 4], 2
test esi, esi
jne 0x431dbc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
movzx eax, byte [edi + 4]
push str.WinHttpOpen_failed___d_
push eax
push ebx
call fcn.00438d22
add esp, 0x10
jmp 0x431f0b
mov eax, 0x7530
push eax
push eax
push eax
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x431df6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.WinHttpSetTimeouts_failed___d_
movzx eax, byte [edi + 4]
push eax
push ebx
call fcn.00438d22
add esp, 0x10
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x431f0b
push 4
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x80
push eax
push 0x54
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x431e24
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.WinHttpSetOption_WINHTTP_OPTION_SECURE_PROTOCOLS_failed___d_
jmp 0x431ddc
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x8c]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 4], 3
test ebx, ebx
jne 0x431e53
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.WinHttpConnect_failed___d_
jmp 0x431ddc
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
jne 0x431e6d
cmp dword [ebp - 0x80], 0
mov ecx, 0x646628
mov eax, str.POST
cmove eax, ecx
mov ecx, eax
xor edx, edx
mov eax, 0x800000
cmp byte [ebp - 0x71], dl
cmovne eax, edx
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x90]
push ecx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x90], edi
mov byte [ebp - 4], 4
test edi, edi
jne 0x431ec5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov eax, dword [ebp - 0x78]
push str.WinHttpOpenRequest_failed___d_
movzx eax, byte [eax + 4]
push eax
xor eax, eax
push eax
call fcn.00438d22
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 0x10
jmp 0x431f03
push 4
lea eax, [ebp - 0x98]
push eax
push 0x1f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x431f2b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.WinHttpSetOption_WINHTTP_OPTION_SECURITY_FLAGS_failed___d_
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax + 4]
push eax
xor eax, eax
push eax
call fcn.00438d22
add esp, 0x10
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push ebx
call edi
push esi
call edi
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.0042889e
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0042889e
xor al, al
call fcn.004b6937
ret 0x30
xor eax, eax
push eax
push 0xffffffffffffffff
push 0x4316a7
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x431f4f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.WinHttpSetStatusCallback_failed___d_
jmp 0x431ee7
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0xc], eax
test eax, eax
jne 0x431fdf
push ecx
push ecx
lea ecx, [ebp - 0x158]
call fcn.00425a86
push 0x20a
push ecx
mov edx, str.HTTPSRequest::MakeRequestWithURLProxyOption
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x148]
call fcn.0041b6b8
mov edx, 0x4f434c
mov ecx, eax
call fcn.0041b6b8
pop ecx
mov ecx, eax
call fcn.00416fd7
mov edx, str.:_CreateEvent_failed._Out_of_memory
mov ecx, eax
call fcn.0041b6b8
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x158]
call fcn.00425a3b
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x431fc8
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00410f4b
push 0x6631f8
lea eax, [ebp - 0x4c]
push eax
call fcn.004b9a9e
mov edx, dword [ebp - 0x9c]
lea eax, [ecx + 0x14]
cmp eax, edx
je 0x431ffc
push 0xffffffffffffffff
xor ecx, ecx
push ecx
push edx
mov ecx, eax
call fcn.00418f7f
mov ecx, dword [ebp - 0x78]
xor eax, eax
mov byte [ecx + 0x10], al
lea eax, [ecx + 0x2c]
push 0x4f39fd
mov dword [ebp - 0x7c], eax
call fcn.00411001
pop ecx
mov ecx, dword [ebp - 0x7c]
push eax
push 0x4f39fd
call fcn.00418f06
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x432044
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xa0]
jne 0x43202f
sub ecx, edx
sar ecx, 1
jmp 0x432048
xor eax, eax
mov ecx, eax
mov eax, dword [ebp - 0x78]
push eax
push dword [ebp + 0x30]
mov eax, dword [ebp - 0x84]
push dword [ebp + 0x30]
push dword [ebp - 0x80]
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
mov eax, dword [ebp - 0x78]
jne 0x4320a5
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x78]
xor ecx, ecx
mov dword [eax + 0xc], ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.WinHttpSendRequest_failed___d_
jmp 0x431ee7
mov edx, dword [ebp - 0xa4]
push 0
mov ecx, dword [edx]
push dword [edx + 4]
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jne 0x4320e3
mov eax, dword [ebp - 0x78]
push 0x64
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x43208d
test eax, eax
je 0x432113
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [ebp - 0x78]
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov dword [edi + 0xc], eax
mov byte [ebp - 0x71], al
jmp 0x432151
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
mov eax, dword [ebp - 0x78]
push 0xffffffffffffffff
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [ebp - 0x78]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x78]
xor ecx, ecx
mov dword [eax + 0xc], ecx
jmp 0x431f03
mov eax, dword [ebp - 0x78]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x78]
xor edx, edx
mov dword [eax + 0xc], edx
cmp byte [eax + 0x10], dl
je 0x431efa
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0xa8]
cmp ecx, eax
je 0x432146
push 0xffffffffffffffff
push edx
push eax
call fcn.00418f7f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 0x71], 1
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
push esi
call ebx
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.0042889e
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0042889e
mov al, byte [ebp - 0x71]
jmp 0x431f23