Function at 0x456370
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7de8
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x522104]
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 edi, ecx
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 4], 1
call fcn.00456290
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.00456d80
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [edi + 8]
call fcn.00456d80
lea eax, [ebp - 0x90]
mov ecx, esi
push eax
call fcn.0042b2e0
mov dword [ebp - 0x30], eax
lea edx, [esi + 0x34]
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 0x10
mov eax, dword [edx + 0x10]
jb 0x4563ec
mov edx, dword [edx]
push 0xfde9
push eax
lea ecx, [ebp - 0x78]
call fcn.00419980
add esp, 8
mov byte [ebp - 4], 3
lea edx, [ebp - 0x78]
cmp dword [ebp - 0x64], 8
push 0xfde9
cmovae edx, dword [ebp - 0x78]
push ecx
push dword [ebp - 0x68]
lea ecx, [ebp - 0x60]
call fcn.004197c0
add esp, 0xc
push dword [ebp - 0x30]
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.0044d5c0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x45646e
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x456464
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456662
push ecx
push edx
call fcn.004a4c93
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
lea ecx, [ebp - 0x78]
call fcn.0040ab30
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x10
jb 0x4564c3
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4564b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456662
push ecx
push edx
call fcn.004a4c93
add esp, 8
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
jb 0x4564e3
mov esi, dword [esi]
push 5
push str.https
mov ecx, esi
call fcn.0042b8f0
movzx esi, al
lea edx, [ebp - 0x28]
shl esi, 0x17
lea ecx, [ebp - 0x48]
or esi, 0x40
cmp dword [ebp - 0x14], 0x10
push 0xfde9
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
call fcn.00419980
add esp, 0x10
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
cmovae eax, dword [ebp - 0x48]
cmp dword [ebx + 0x14], 8
jb 0x45652b
mov ebx, dword [ebx]
push esi
push 0
push 0
push 0
push eax
push ebx
push dword [edi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea ecx, [ebp - 0x48]
mov dword [edi + 0x10], eax
call fcn.0040ab30
mov eax, dword [edi + 0x10]
test eax, eax
je 0x456667
push 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
push ecx
push 0x2d
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x456689
push 0
push 0xffffffffffffffff
push 0x456f10
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
je 0x4566ab
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4565bc
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4565b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4566cd
push ecx
push edx
call fcn.004a4c93
add esp, 8
mov edi, dword [ebp + 0xc]
or ebx, 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test edi, edi
je 0x45660b
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x45660b
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, edi
call esi
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x45660b
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, edi
call esi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x456644
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x456644
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, edi
call esi
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x456644
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, edi
call esi
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.004a4c5b
mov esp, ebp
pop ebp
ret 0x18
call fcn.004b14ff
push str.Unable_to_initialize_WinHTTP_request_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x44]
call fcn.00492530
push 0x51f1f8
lea eax, [ebp - 0x44]
push eax
call fcn.004a765b
push str.Unable_to_set_WinHTTP_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x44]
call fcn.00492530
push 0x51f1f8
lea eax, [ebp - 0x44]
push eax
call fcn.004a765b
push str.Unable_to_set_WinHTTP_status_callback_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x44]
call fcn.00492530
push 0x51f1f8
lea eax, [ebp - 0x44]
push eax
call fcn.004a765b
call fcn.004b14ff
int3