Function at 0x10003480
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002efce
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x10038400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x60], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 2
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push 0
push 0
push 0
push 0
push str.Winhttp_API
mov dword [ebp - 0x60], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x10003807
push 0xfde9
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10003930
cmp dword [eax + 0x14], 7
jbe 0x10003526
mov eax, dword [eax]
push 0
push dword [ebp + 0x3c]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x68], eax
cmp ecx, 7
jbe 0x10003577
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000356a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000356a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002dc60
mov eax, dword [ebp - 0x68]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
test eax, eax
je 0x10003807
push 0xfde9
lea eax, [ebp + 0x24]
mov ecx, esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10003930
cmp dword [eax + 0x14], 7
jbe 0x100035af
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
push 0x10030414
push dword [ebp - 0x68]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
mov dword [ebp - 0x64], esi
cmp ecx, 7
jbe 0x10003607
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100035fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100035fd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002dc60
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test esi, esi
je 0x10003807
push eax
push eax
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x10003807
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10003807
nop dword [eax]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [ebp - 0x5c]
inc eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10003754
mov eax, dword [ebp - 0x5c]
inc eax
push eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x5c]
push esi
push dword [ebp - 0x64]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1000373c
mov edx, dword [edi + 0x10]
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x70], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100036b0
sub ecx, dword [ebp - 0x70]
mov eax, 0x7fffffff
sub eax, edx
cmp eax, ecx
jb 0x1000380f
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x100036d3
mov eax, dword [edi]
push ecx
push esi
push edx
push eax
push edi
push dword [ebp - 0x74]
lea ecx, [ebp - 0x58]
call fcn.10002c20
or dword [ebp - 0x60], 2
lea eax, [ebp - 0x58]
cmp edi, eax
je 0x10003708
mov ecx, edi
call fcn.10001790
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [edi + 0x10], xmm0
jmp 0x1000373c
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x1000373c
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003732
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100037d8
push ecx
push edx
call fcn.1002dc60
add esp, 8
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [ebp - 0x5c], 0
jbe 0x1000375b
mov esi, dword [ebp - 0x64]
jmp 0x10003650
mov dword [ebp - 0x5c], 0
push dword [ebp - 0x64]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x6c]
call esi
mov ecx, dword [ebp + 0x20]
cmp ecx, 0xf
jbe 0x100037a0
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003796
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100037d8
push ecx
push edx
call fcn.1002dc60
add esp, 8
mov ecx, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
cmp ecx, 0xf
jbe 0x100037e8
mov edx, dword [ebp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100037de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100037de
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002dc60
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002e06b
mov esp, ebp
pop ebp
ret 0x38
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.10002750
int3