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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68ff08
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x780784]
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]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push edi
push edi
push edi
push edi
push str.WinHTTP_post_1.0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push 4
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x34], eax
push ecx
push 0x54
push eax
mov dword [ebp - 0x38], 0xaa0
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x57f83b
push edi
push 0x1bb
push dword [ebp - 0x3c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x57f83b
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 0x57f843
mov esi, dword [esi]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x57f848
sub ecx, edx
test edi, edi
je 0x57fa35
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 0x57fa35
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x57fa3b
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push edi
call ebx
test eax, eax
je 0x57fa0b
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x57f923
inc eax
push eax
call fcn.0060c9a0
mov esi, eax
add esp, 4
test esi, esi
je 0x57f9c9
mov ecx, dword [ebp - 0x2c]
inc ecx
push ecx
push 0
push esi
call fcn.0060f310
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x2c]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x57f984
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x57f901
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00475240
push esi
call fcn.0060c9a9
add esp, 4
cmp dword [ebp - 0x2c], 0
ja 0x57f8a4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
push 4
push 0x6c5654
push dword [ebp - 0x18]
cmovae eax, esi
push eax
call fcn.0047b480
add esp, 0x10
test eax, eax
mov eax, dword [ebp - 0x14]
sete bl
cmp eax, 0x10
jb 0x57fa3d
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x57f975
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57fa7c
push ecx
push esi
call fcn.0060c992
add esp, 8
jmp 0x57fa3d
push esi
call fcn.0060c9a9
mov edx, dword [ebp - 0x14]
add esp, 4
xor bl, bl
cmp edx, 0x10
jb 0x57fa3d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x57f9bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57fa7c
push edx
push ecx
call fcn.0060c992
add esp, 8
jmp 0x57fa3d
push 0
call fcn.0060c9a9
mov edx, dword [ebp - 0x14]
add esp, 4
xor bl, bl
cmp edx, 0x10
jb 0x57fa3d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x57f9ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57fa7c
push edx
push ecx
call fcn.0060c992
add esp, 8
jmp 0x57fa3d
mov edx, dword [ebp - 0x14]
xor bl, bl
cmp edx, 0x10
jb 0x57fa3d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x57f9ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57fa7c
jmp 0x57f9ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x57fa4a
push edi
call esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x57fa54
push eax
call esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x57fa5e
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.0060cdfa
mov esp, ebp
pop ebp
ret
call fcn.0061883f
int3