Function at 0x4c4ce0
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x843de6
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0xa5e224]
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, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], 0
lea ecx, [esi + 0x18]
cmp dword [esi + 0x2c], 8
mov dword [ebp - 0x44], ebx
jb 0x4c4d2d
mov ecx, dword [esi + 0x18]
push 5
push str.https
push dword [esi + 0x28]
push ecx
call fcn.004c0c60
mov cl, al
add esp, 0x10
movzx eax, word [esi + 0x60]
mov byte [ebp - 0x2d], cl
test ax, ax
je 0x4c4d52
mov ecx, eax
jmp 0x4c4d64
test cl, cl
mov eax, 0x50
mov edx, 0x1bb
cmovne eax, edx
movzx ecx, ax
cmp dword [esi + 0x44], 8
lea eax, [esi + 0x30]
jb 0x4c4d6f
mov eax, dword [eax]
push 0
push ecx
push eax
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4c4f5f
movzx eax, byte [ebp - 0x2d]
mov ecx, dword [esi + 0xd8]
shl eax, 0x17
or eax, 0x100
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0xd4]
cmp eax, ecx
jne 0x4c4dba
mov dword [ebp - 0x34], 0
jmp 0x4c4eb7
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
xor ecx, ecx
sar edx, 2
mov eax, edx
inc edx
shr eax, 0x1f
add eax, edx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x2c], ecx
call fcn.008008c1
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4c4e04
push dword [ebp - 0x2c]
push 0
push eax
call fcn.00802640
mov eax, dword [ebp - 0x34]
add esp, 0xc
jmp 0x4c4e09
xor eax, eax
mov dword [ebp - 0x34], eax
mov ecx, dword [esi + 0xd8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0xd4]
sub ecx, eax
mov dword [ebp - 0x2c], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4c4e88
mov ebx, dword [esi + 0xd4]
xor edi, edi
xor edx, edx
nop word [eax + eax]
cmp dword [edi + ebx + 0x14], 8
lea eax, [edi + ebx]
jb 0x4c4e4c
mov eax, dword [eax]
mov ecx, dword [ebp - 0x34]
add edi, 0x18
mov dword [ecx + edx*4], eax
inc edx
mov ecx, dword [esi + 0xd8]
mov eax, 0x2aaaaaab
mov ebx, dword [esi + 0xd4]
sub ecx, ebx
mov dword [ebp - 0x2c], edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x2c]
cmp edx, eax
jb 0x4c4e40
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x44]
mov ecx, dword [esi + 0xd8]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x2c]
imul ecx
mov ecx, dword [ebp - 0x34]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ecx + eax*4], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x3c], 0xd
cmp dword [esi + 0xf0], 0
jne 0x4c4ec9
mov dword [ebp - 0x2c], 0
jmp 0x4c4ee0
cmp dword [esi + 0xf4], 8
lea eax, [esi + 0xe0]
mov dword [ebp - 0x2c], eax
jb 0x4c4ee0
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x18]
call fcn.004c2c40
cmp dword [eax + 0x14], 8
jb 0x4c4ef4
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x4c4efc
mov esi, dword [esi]
push dword [ebp - 0x48]
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
push 0
push eax
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00436680
test byte [ebp - 0x3c], 1
je 0x4c4f30
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4c4f30
push eax
call fcn.008008bc
add esp, 4
test esi, esi
je 0x4c4f58
push 4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 1
push eax
push 0x3f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov dword [ebx + 0xc], 0
jmp 0x4c4f82
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], eax
mov eax, ebx
mov dword [ebx + 8], 0
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.00800392
mov esp, ebp
pop ebp
ret