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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x683028
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x77e784]
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 + 0x10]
xor edi, edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
push edi
push edi
push edi
push str.WinHTTP_get_1.0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x29], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push 4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x38], eax
push ecx
push 0x54
push eax
mov dword [ebp - 0x3c], 0xaa0
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x57d6f0
push edi
push 0x1bb
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x57d6f0
push 0x800000
push edi
push edi
push edi
push ebx
push 0x6eb37c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x57d6f0
push 0
push 0
push 0
push 0
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 0x57d6f0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x57d6f6
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
nop dword [eax + eax]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push edi
call ebx
test eax, eax
je 0x57d6c2
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x57d5c6
inc eax
push eax
call fcn.0060b8f0
mov esi, eax
add esp, 4
test esi, esi
je 0x57d67d
mov ecx, dword [ebp - 0x30]
inc ecx
push ecx
push 0
push esi
call fcn.0060e250
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x30]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x57d63c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x57d581
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00475240
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x57d5a0
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x44]
push esi
call fcn.004753c0
push esi
call fcn.0060b8f9
add esp, 4
cmp dword [ebp - 0x30], 0
ja 0x57d520
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x57d5fa
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x57d5f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57d6fd
push edx
push ecx
call fcn.0060b8e2
add esp, 8
mov bl, byte [ebp - 0x29]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x57d60a
push edi
call esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x57d614
push eax
call esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x57d61e
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.0060bd4a
mov esp, ebp
pop ebp
ret
push esi
call fcn.0060b8f9
mov edx, dword [ebp - 0x14]
add esp, 4
xor bl, bl
cmp edx, 0x10
jb 0x57d5fd
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x57d671
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57d6fd
push edx
push ecx
call fcn.0060b8e2
add esp, 8
jmp 0x57d5fd
push 0
call fcn.0060b8f9
mov edx, dword [ebp - 0x14]
add esp, 4
xor bl, bl
cmp edx, 0x10
jb 0x57d5fd
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x57d6b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57d6fd
push edx
push ecx
call fcn.0060b8e2
add esp, 8
jmp 0x57d5fd
mov edx, dword [ebp - 0x14]
xor bl, bl
cmp edx, 0x10
jb 0x57d5fd
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x57d6b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57d6fd
jmp 0x57d6b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x57d5fd
call fcn.0061777f
int3