Function at 0x4c3ce0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635e06
mov eax, dword fs:[0]
push eax
sub esp, 0xcc4
mov eax, dword [0x6c3afc]
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 + 8]
mov ebx, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0x64d888
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0xc88], edi
test edi, edi
jne 0x4c3d3a
xor al, al
jmp 0x4c4073
push 0x38
lea eax, [ebp - 0xccc]
push 0
push eax
mov dword [ebp - 0xcd0], 0x3c
call fcn.005de050
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.005de050
xor eax, eax
push 0xa26
push eax
lea ecx, [ebp - 0xc3e]
push ecx
mov word [ebp - 0xc40], ax
call fcn.005de050
lea eax, [ebp - 0xc40]
lea edx, [ebp - 0x218]
mov dword [ebp - 0xca4], eax
mov eax, esi
mov dword [ebp - 0xcc0], edx
add esp, 0x24
mov dword [ebp - 0xcbc], 0x104
mov dword [ebp - 0xca0], 0x514
mov dword [ebp - 0xcc8], 1
lea edx, [eax + 2]
jmp 0x4c3dd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c3dd0
lea ecx, [ebp - 0xcd0]
push ecx
sub eax, edx
push 0
sar eax, 1
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x4c3dfb
xor bl, bl
jmp 0x4c406a
mov edx, dword [ebp - 0xcc0]
push 0
push 0x50
push edx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0xc90], eax
test eax, eax
je 0x4c3df4
mov ecx, dword [ebp - 0xca4]
push 0
push 0
push 0
push 0
push ecx
push 0x64d880
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push 0
push 0
push 0
push 0
push 0
mov esi, eax
push 0
push esi
mov dword [ebp - 0xc8c], esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4c3e58
xor bl, bl
jmp 0x4c404c
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x4c3e6c
xor bl, bl
jmp 0x4c404c
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
lea edx, [ebp - 0xc80]
push edx
push 0
push 0
push 0x16
push esi
call edi
mov eax, dword [ebp - 0xc80]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004effa4
add esp, 4
push 0
lea ecx, [ebp - 0xc80]
push ecx
push eax
push 0
push 0x16
push esi
mov dword [ebp - 0xc84], eax
call edi
test eax, eax
jne 0x4c3ed5
mov edx, dword [ebp - 0xc84]
push edx
xor bl, bl
call fcn.004effaf
add esp, 4
jmp 0x4c404c
lea eax, [ebp - 0xc7c]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4c3eee
xor bl, bl
jmp 0x4c404c
mov ecx, dword [ebp - 0xc7c]
inc ecx
push ecx
call fcn.004effa4
mov edx, dword [ebp - 0xc7c]
inc edx
push edx
mov edi, eax
push 0
push edi
call fcn.005de050
mov ecx, dword [ebp - 0xc7c]
add esp, 0x10
lea eax, [ebp - 0xc94]
push eax
push ecx
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4c3f3a
push edi
xor bl, bl
call fcn.004effaf
add esp, 4
jmp 0x4c404c
xor esi, esi
mov eax, edi
mov dword [ebp - 0xc48], 0xf
mov dword [ebp - 0xc4c], esi
mov byte [ebp - 0xc5c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c3f58
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0xc5c]
call fcn.00403c90
lea edx, [ebp - 0xc5c]
push edx
lea eax, [ebp - 0xc78]
push eax
mov dword [ebp - 4], esi
call fcn.00401150
add esp, 8
mov esi, eax
cmp ebx, esi
je 0x4c3fe4
cmp dword [ebx + 0x14], 0x10
jb 0x4c3f9e
mov ecx, dword [ebx]
push ecx
call fcn.004effaf
add esp, 4
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp dword [esi + 0x14], 0x10
jae 0x4c3fc6
mov edx, dword [esi + 0x10]
inc edx
push edx
push esi
push ebx
call fcn.005de430
add esp, 0xc
jmp 0x4c3fd0
mov eax, dword [esi]
mov dword [ebx], eax
mov dword [esi], 0
mov ecx, dword [esi + 0x10]
mov dword [ebx + 0x10], ecx
mov edx, dword [esi + 0x14]
xor eax, eax
mov dword [ebx + 0x14], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
cmp dword [ebp - 0xc64], 0x10
jb 0x4c3ffc
mov eax, dword [ebp - 0xc78]
push eax
call fcn.004effaf
add esp, 4
cmp dword [ebp - 0xc48], 0x10
mov dword [ebp - 0xc64], 0xf
mov dword [ebp - 0xc68], 0
mov byte [ebp - 0xc78], 0
jb 0x4c402f
mov ecx, dword [ebp - 0xc5c]
push ecx
call fcn.004effaf
add esp, 4
mov edx, dword [ebp - 0xc84]
push edx
call fcn.004effaf
push edi
call fcn.004effaf
mov esi, dword [ebp - 0xc8c]
add esp, 8
mov bl, 1
test esi, esi
je 0x4c4057
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0xc90]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [ebp - 0xc88]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
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.005dd8e2
mov esp, ebp
pop ebp
ret