Function at 0x676340
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x82d084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
xor edi, edi
mov dword [ebp - 4], 0
push edi
push edi
push edi
push edi
push str.WinHTTP_post_1.0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push 4
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x4c], eax
push ecx
push 0x54
push eax
mov dword [ebp - 0x50], 0xaa0
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x676404
push edi
push 0x1bb
push dword [ebp - 0x54]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x676404
push 0x800000
push edi
push edi
push edi
push ebx
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
cmp dword [esi + 0x14], 0x10
jb 0x67640c
mov esi, dword [esi]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x676411
sub ecx, edx
test edi, edi
je 0x67652f
push 0
push ecx
push ecx
push esi
push 0xffffffffffffffff
push str.Content_type:_application_json__charsetutf_8_r_n
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x67652f
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x676535
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov byte [ebp - 4], 1
nop word [eax + eax]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push edi
call ebx
test eax, eax
je 0x676523
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x6764e7
inc eax
push eax
call fcn.0067beb9
mov esi, eax
add esp, 4
test esi, esi
je 0x676519
mov ecx, dword [ebp - 0x44]
inc ecx
push ecx
push 0
push esi
call fcn.0068e800
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x44]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x676516
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6764c5
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00441450
push esi
call fcn.0067bcc4
add esp, 4
cmp dword [ebp - 0x44], 0
ja 0x676470
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push str.true
push dword [ebp - 0x18]
push eax
call fcn.004abe10
add esp, 0x10
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0042fce0
test esi, esi
sete bl
jmp 0x676537
push esi
jmp 0x67651b
push 0
call fcn.0067bcc4
add esp, 4
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.0042fce0
jmp 0x676537
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor bl, bl
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x676544
push edi
call esi
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x67654e
push eax
call esi
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x676558
push eax
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0067ba01
mov esp, ebp
pop ebp
ret