Function at 0x4c60c0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533e18
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x5c6150]
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]
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x98], ecx
cmp dword [eax + 0x14], 8
mov byte [ebp - 0x79], 0
jb 0x4c611b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x78]
call fcn.004c5d00
push 0
push 0
push 0
push 0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00413450
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0x9c], esi
test esi, esi
je 0x4c63af
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x78]
call fcn.004c5f00
cmp dword [eax + 0x14], 8
jb 0x4c6165
mov eax, dword [eax]
push 0
push dword [ebp - 0x74]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], esi
cmp eax, 8
jb 0x4c61d3
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x4c6192
call fcn.004e1d90
add eax, eax
cmp eax, 0x1000
jb 0x4c61ca
test byte [ebp - 0x28], 0x1f
je 0x4c61a6
call fcn.004e1d90
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4c61b2
call fcn.004e1d90
sub ecx, eax
cmp ecx, 4
jae 0x4c61be
call fcn.004e1d90
cmp ecx, 0x23
jbe 0x4c61c8
call fcn.004e1d90
mov ecx, eax
push ecx
call fcn.004d6cf8
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 0
test esi, esi
mov dword [ebp - 0x14], 7
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov word [ebp - 0x28], ax
je 0x4c63a7
cmp dword [ebp - 0x78], 2
mov ecx, 0x100
mov edi, 0x800100
sete al
test al, al
mov byte [ebp - 0x7a], al
lea eax, [ebp - 0x40]
cmove edi, ecx
lea ecx, [ebp - 0x78]
push eax
call fcn.004c5f40
cmp dword [eax + 0x14], 8
jb 0x4c6222
mov eax, dword [eax]
cmp dword [ebp - 0x80], 0
mov ecx, 0x54797c
push edi
push 0
push 0
push 0
push eax
mov eax, 0x547974
cmovne eax, ecx
push eax
push dword [ebp - 0x88]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4c62a3
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x4c6262
call fcn.004e1d90
add eax, eax
cmp eax, 0x1000
jb 0x4c629a
test byte [ebp - 0x40], 0x1f
je 0x4c6276
call fcn.004e1d90
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4c6282
call fcn.004e1d90
sub ecx, eax
cmp ecx, 4
jae 0x4c628e
call fcn.004e1d90
cmp ecx, 0x23
jbe 0x4c6298
call fcn.004e1d90
mov ecx, eax
push ecx
call fcn.004d6cf8
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test edi, edi
je 0x4c639f
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp byte [ebp - 0x7a], al
je 0x4c6309
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], 4
push eax
push 0x1f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
or dword [ebp - 0x84], 0x3100
lea eax, [ebp - 0x84]
push 4
push eax
push 0x1f
push edi
call esi
push 4
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 2
push eax
push 0x58
push edi
call esi
mov esi, dword [ebp + 0x18]
xor ecx, ecx
cmp dword [ebp - 0x80], ecx
mov eax, esi
push 0
cmove eax, ecx
push eax
push ecx
push ecx
push ecx
push ecx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4c6396
mov dword [ebp - 0x80], 0
test ebx, ebx
je 0x4c6369
test esi, esi
je 0x4c6369
nop
lea eax, [ebp - 0x80]
push eax
push esi
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
je 0x4c6369
add ebx, dword [ebp - 0x80]
sub esi, dword [ebp - 0x80]
jne 0x4c6350
mov esi, dword [ebp - 0x94]
test esi, esi
je 0x4c6392
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4c6396
push esi
push edi
call fcn.004c5fe0
mov ecx, dword [ebp - 0x98]
add esp, 8
mov dword [ecx], eax
mov byte [ebp - 0x79], 1
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
push dword [ebp - 0x88]
call esi
push dword [ebp - 0x9c]
call esi
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4c63c4
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004bd350
mov ecx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 8
jb 0x4c63ed
inc ecx
push ecx
push dword [ebp - 0x70]
lea ecx, [ebp - 0x70]
call fcn.004bd350
mov al, byte [ebp - 0x79]
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.004d6cfd
mov esp, ebp
pop ebp
ret 0x1c