Function at 0x4895b0
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5178e4
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x56a8e0]
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 esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov bl, byte [ebp + 0x18]
cmp dword [edi + 0x14], 8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x100], eax
mov byte [ebp - 0xf2], bl
jb 0x489611
mov edx, dword [edi]
jmp 0x489613
mov edx, edi
cmp dword [ecx + 0x14], 8
jb 0x48961b
mov ecx, dword [ecx]
xor eax, eax
test bl, bl
mov ebx, dword [ebp - 0xf8]
mov dword [ebp - 0x104], 0x800000
cmovne eax, dword [ebp - 0x104]
push eax
push 0
push 0
push 0
push edx
push ecx
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi], eax
mov dword [esi + 4], ebx
lea ebx, [esi + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0xf8], ebx
push 0x24
mov byte [ebp - 4], 1
mov dword [ebx], 0x5289f8
call fcn.00493374
add esp, 4
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x489695
lea ecx, [ebp - 0xf1]
push ecx
lea ecx, [ebp - 0xf1]
push ecx
mov ecx, eax
call fcn.00489260
jmp 0x489697
xor eax, eax
push eax
lea ecx, [ebx + 8]
mov byte [ebp - 4], 1
call fcn.00488370
mov dword [ebx], 0x528a68
lea ebx, [esi + 0x18]
mov dword [ebp - 0xf8], ebx
push 0x24
mov byte [ebp - 4], 4
mov dword [ebx], 0x5289f8
call fcn.00493374
add esp, 4
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x4896ec
lea ecx, [ebp - 0xf1]
push ecx
lea ecx, [ebp - 0xf1]
push ecx
mov ecx, eax
call fcn.00489260
jmp 0x4896ee
xor eax, eax
push eax
lea ecx, [ebx + 8]
mov byte [ebp - 4], 4
call fcn.00488370
mov dword [ebx], 0x528a68
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x28], eax
mov eax, dword [esi]
mov byte [ebp - 4], 6
test eax, eax
jne 0x489756
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00478270
add esp, 8
mov esi, eax
push str.http_request__1__failed_with_error
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 7
call fcn.00458b30
push esi
push eax
mov byte [ebp - 4], 8
call fcn.00456d70
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004587d0
add esp, 0x10
push eax
mov byte [ebp - 4], 9
call fcn.0048b030
cmp byte [ebp - 0xf2], 0
je 0x4897c3
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0
push 0
push 0x2f
push eax
call edi
test eax, eax
jne 0x48978c
push str.http_request_ssl_setting_error
lea ecx, [ebp - 0x28]
call fcn.00406260
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xa
call fcn.0048b030
push 4
lea eax, [ebp - 0xf8]
push eax
push 0x1f
push dword [esi]
mov dword [ebp - 0xf8], 0x3300
call edi
test eax, eax
jne 0x4897c3
push str.http_request_ssl_setting_error
lea ecx, [ebp - 0x28]
call fcn.00406260
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xb
call fcn.0048b030
mov ecx, dword [ebp - 0x100]
test ecx, ecx
je 0x4898a1
movzx eax, byte [0x571bdd]
push eax
push ecx
lea eax, [ebp - 0x108]
push fcn.00436b6e
push eax
call fcn.00488850
add esp, 0x10
lea ecx, [ebp - 0x58]
push eax
call fcn.00488040
push 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xfc]
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 0xc
call fcn.00489fd0
mov ecx, dword [ebp - 0xf8]
or edi, 0xffffffff
test ecx, ecx
je 0x48982d
lea eax, [ecx + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x48982d
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.00414840
movzx eax, byte [0x571bdd]
push eax
push dword [ebp - 0x100]
lea eax, [ebp - 0x108]
push 0x4816cb
push eax
call fcn.00488850
add esp, 0x10
lea ecx, [ebp - 0x58]
push eax
call fcn.00488040
push 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xfc]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xd
call fcn.00489fd0
mov ecx, dword [ebp - 0xf8]
test ecx, ecx
je 0x489895
lea eax, [ecx + 8]
lock xadd dword [eax], edi
dec edi
jne 0x489895
mov edx, dword [ecx]
call dword [edx + 8]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.00414840
mov eax, 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.00493d56
mov esp, ebp
pop ebp
ret 0x18