Function at 0x3d869b0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xd4
mov edi, edx
mov esi, ecx
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xf8]
add ecx, eax
lea edx, [esp + 0x28]
mov dword [edx], 1
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov word [edx + 0xc], 0
lea ebx, [esp + 0x68]
mov ecx, ebx
call fcn.03d8136f
mov eax, dword [ebx + 4]
sub esp, 0x14
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
je 0x3d86a3c
mov ebp, eax
lea ebx, [esp + 0x28]
mov ecx, ebx
mov edx, edi
push dword [esp + 0xe8]
call fcn.03d860d5
add esp, 4
mov eax, dword [ebx]
cmp eax, 0x80000000
jne 0x3d86a65
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
jmp 0x3d86a5a
call sub.KERNEL32.dll_GetLastError
lea ecx, [esp + 0x28]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.03d82864
mov dword [esi + 4], eax
mov dword [esi + 8], 0x3dcea88
mov dword [esi], 0x80000000
jmp 0x3d86ee0
mov dword [esp], esi
lea edx, [esp + 0x28]
mov ecx, dword [edx + 4]
mov esi, dword [edx + 8]
movups xmm0, xmmword [edx + 0x18]
movups xmmword [esp + 0xbc], xmm0
movups xmm0, xmmword [edx + 0xc]
movups xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], esi
movzx esi, word [esp + 0xc8]
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb8]
add ecx, eax
mov dword [edx], 1
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov word [edx + 0xc], 0
lea edi, [esp + 0x74]
mov ecx, edi
call fcn.03d8136f
push 0
push esi
push dword [edi + 4]
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
je 0x3d86c2a
mov ebx, eax
mov dword [esp + 4], ebp
xor esi, esi
inc esi
lea edi, [esp + 0x28]
mov dword [edi], esi
mov eax, str.POST_HTTP_1.1Content_Type:_application_json
mov dword [edi + 4], eax
lea eax, [0x3dcf1b8]
mov dword [edi + 8], eax
xor ebp, ebp
mov word [edi + 0xc], bp
lea ecx, [esp + 0x50]
mov edx, edi
call fcn.03d8136f
mov dword [edi], esi
mov eax, 0x3dcf1b8
mov dword [edi + 4], eax
lea eax, [0x3dcf1bb]
mov dword [edi + 8], eax
mov word [edi + 0xc], bp
lea ecx, [esp + 0x5c]
lea edi, [esp + 0x28]
mov edx, edi
call fcn.03d8136f
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
add ecx, eax
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov word [edi + 0xc], bp
lea edi, [esp + 0x80]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x28]
mov ecx, edi
mov edx, ebx
call fcn.03d8136f
mov dword [ebx], esi
mov eax, 0x3dcf1bb
mov dword [ebx + 4], eax
lea eax, [0x3dcf1c3]
mov dword [ebx + 8], eax
mov word [ebx + 0xc], bp
lea ebx, [esp + 0x8c]
lea edx, [esp + 0x28]
mov ecx, ebx
call fcn.03d8136f
push ebp
push ebp
lea eax, [esp + 0x64]
push dword [eax + 4]
push dword [ebx + 4]
mov ebx, dword [esp + 0x18]
push dword [edi + 4]
lea eax, [esp + 0x64]
push dword [eax + 4]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test eax, eax
je 0x3d86c5d
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0xec]
lea edx, [esp + 0x28]
mov dword [edx], 1
mov eax, 0x3dcf1c3
mov dword [edx + 4], eax
lea eax, [0x3dcf1e1]
mov dword [edx + 8], eax
mov word [edx + 0xc], 0
lea edi, [esp + 0x98]
mov ecx, edi
call fcn.03d8136f
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
test esi, esi
mov edi, dword [esp + 4]
je 0x3d86c98
mov edx, dword [esp + 0xf0]
push 0
push edx
push edx
push esi
push ecx
push eax
mov ebp, dword [esp + 0x28]
push ebp
jmp 0x3d86cb2
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call sub.KERNEL32.dll_GetLastError
lea ecx, [esp + 0x28]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.03d82864
mov ecx, dword [esp]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0x3dcea88
mov dword [ecx], 0x80000000
jmp 0x3d86ebb
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
push dword [esp + 4]
call esi
call sub.KERNEL32.dll_GetLastError
lea ecx, [esp + 0x28]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.03d82864
mov ecx, dword [esp]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0x3dcea88
mov dword [ecx], 0x80000000
jmp 0x3d86e4b
sub esp, 0x1c
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x2c]
mov dword [esp], ebp
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x3d86df6
push 0
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x3d86df6
xor esi, esi
lea eax, [esp + 0xcc]
mov dword [eax], esi
lea ecx, [esp + 0xd0]
mov dword [ecx], 4
push esi
push ecx
push eax
push esi
push 0x20000013
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x3d86df6
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], esi
lea eax, [esp + 0xc]
mov dword [eax], esi
push eax
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
mov esi, ebp
je 0x3d86db6
mov edi, dword [esp + 0xc]
test edi, edi
je 0x3d86f04
mov ecx, edi
xor edx, edx
inc edx
call fcn.03da19ec
mov ebp, eax
mov ebx, edx
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
push edx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x3d86f82
mov ecx, dword [esp + 0x20]
cmp edi, ecx
jb 0x3d86ff5
mov eax, ebx
add eax, ecx
lea ecx, [esp + 0x14]
mov edx, ebx
push eax
call fcn.03da0be8
add esp, 4
test ebp, ebp
je 0x3d86d96
push ebx
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
mov edi, dword [esp + 4]
jne 0x3d86d29
mov eax, esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push eax
call esi
push dword [esp + 8]
call esi
push edi
call esi
call sub.KERNEL32.dll_GetLastError
lea ecx, [esp + 0x28]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.03d82864
mov ecx, dword [esp]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0x3dcea88
mov dword [ecx], 0x80000000
jmp 0x3d86fd3
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebp
call esi
push ebx
call esi
push edi
call esi
call sub.KERNEL32.dll_GetLastError
lea ecx, [esp + 0x28]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.03d82864
mov ecx, dword [esp]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0x3dcea88
mov dword [ecx], 0x80000000
cmp dword [esp + 0x98], 0
je 0x3d86e4b
push dword [esp + 0x9c]
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x8c], 0
je 0x3d86e6a
push dword [esp + 0x90]
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x80], 0
je 0x3d86e89
push dword [esp + 0x84]
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x5c], 0
je 0x3d86ea2
push dword [esp + 0x60]
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x50], 0
je 0x3d86ebb
push dword [esp + 0x54]
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x74], 0
je 0x3d86ed4
push dword [esp + 0x78]
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0xa4]
call fcn.03d86642
cmp dword [esp + 0x68], 0
je 0x3d86ef9
push dword [esp + 0x6c]
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0xd4
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x28]
mov ecx, edi
push dword [esp + 0x1c]
call fcn.03d924f0
add esp, 4
mov esi, dword [edi + 4]
mov ebx, dword [edi + 8]
mov ecx, ebx
xor edx, edx
call fcn.03da19ec
mov dword [esp + 0x24], eax
mov ebp, edx
push ebx
push esi
push edx
call fcn.03dbf720
add esp, 0xc
mov eax, dword [edi]
cmp eax, 0x80000000
je 0x3d86f59
test eax, eax
je 0x3d86f59
push dword [esp + 0x2c]
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [esp + 0x10]
call esi
push dword [esp + 8]
call esi
push dword [esp + 4]
call esi
mov eax, dword [esp]
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
jmp 0x3d86fd3
mov eax, esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push eax
call esi
push dword [esp + 8]
call esi
push dword [esp + 4]
call esi
call sub.KERNEL32.dll_GetLastError
lea ecx, [esp + 0x28]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.03d82864
mov ecx, dword [esp]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0x3dcea88
mov dword [ecx], 0x80000000
test ebp, ebp
je 0x3d86fd3
push ebx
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x14], 0
je 0x3d86e2c
push dword [esp + 0x18]
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x3d86e2c
mov edx, edi
push 0x3dcf1e4
call fcn.03dcc310