Function at 0x4c1740
Capabilities:
Parse url
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x10b8
call fcn.005beef0
mov eax, dword [0x7ce4e4]
xor eax, esp
mov dword [esp + 0x10b4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
sub esp, 0xc
mov dword [esp + 0x28], edx
mov esi, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 0
call fcn.004c0ff0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4c1b06
push 0x800
lea eax, [esp + 0xbc]
push 0
push eax
call fcn.005c0be0
push 0x800
lea eax, [esp + 0x8c8]
push 0
push eax
call fcn.005c0be0
add esp, 0x18
mov dword [esp + 0x38], 0
lea eax, [esp + 0xb8]
mov dword [esp + 0x54], 0
mov dword [esp + 0x3c], eax
xorps xmm0, xmm0
lea eax, [esp + 0x8b8]
movlpd qword [esp + 0x30], xmm0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push esi
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x70], xmm0
mov dword [esp + 0x3c], 0x3c
mov dword [esp + 0x50], 0x800
mov dword [esp + 0x6c], 0x800
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push 8
push str.https:__
push esi
mov dword [esp + 0x1c], 0x50
mov dword [esp + 0x24], 0x84000000
call fcn.005dbe19
add esp, 0xc
test eax, eax
sete byte [esp + 0xf]
test eax, eax
jne 0x4c1861
mov dword [esp + 0x18], 0x84813180
mov dword [esp + 0x10], 0x1bb
cmp dword [esp + 0x14], 0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x4c18aa
push 4
lea eax, [esp + 0x18]
push eax
push 2
push edi
call esi
push 4
lea eax, [esp + 0x18]
push eax
push 5
push edi
call esi
push 4
lea eax, [esp + 0x18]
push eax
push 6
push edi
call esi
push 4
lea eax, [esp + 0x18]
push eax
push 7
push edi
call esi
push 4
lea eax, [esp + 0x18]
push eax
push 8
push edi
call esi
mov edx, dword [esp + 0x3c]
sub esp, 0x14
mov ecx, edi
push dword [esp + 0x24]
call fcn.004c1090
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x4c1adf
push 0
push dword [esp + 0x1c]
push 0
push 0
push 0
push dword [esp + 0x6c]
push 0x77d780
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x4c1ab2
cmp byte [esp + 0xf], 0
je 0x4c1935
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 4
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [esp + 0x10], 0x813180
lea eax, [esp + 0x10]
push 4
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0x31
xorps xmm0, xmm0
mov dword [esp + 0xa4], 0
push 0x77d788
lea ecx, [esp + 0x98]
movaps xmmword [esp + 0x98], xmm0
mov dword [esp + 0xac], 0
call fcn.00474450
cmp dword [esp + 0xa4], 8
lea eax, [esp + 0x90]
push 0x20000000
push dword [esp + 0xa4]
cmovae eax, dword [esp + 0x98]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov eax, dword [ebp + 8]
lea edx, [esp + 0x68]
xorps xmm0, xmm0
mov dword [esp + 0x68], 0x28
sub esp, 0xc
movlpd qword [esp + 0x78], xmm0
mov ecx, esi
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x94], xmm0
mov dword [esp + 0x90], eax
mov byte [esp + 0x1b], 0
call fcn.004c1130
add esp, 0xc
test eax, eax
je 0x4c1a33
push dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.004c0e30
movzx ecx, byte [esp + 0x13]
add esp, 4
test eax, eax
mov edx, 1
cmove ecx, edx
push 0
push 0
push 0
push esi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WININET.dll_HttpEndRequestW]
cmp byte [esp + 0x1c], 0
je 0x4c1a46
push dword [ebp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, esi
call fcn.004c0e80
add esp, 4
mov dword [esp + 0x20], eax
jmp 0x4c1a46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ecx, dword [esp + 0xa4]
cmp ecx, 8
jb 0x4c1abe
mov edx, dword [esp + 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c1a87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c1b24
push ecx
push edx
call fcn.005be247
add esp, 8
push dword [esp + 0x28]
call esi
push edi
call esi
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov ecx, dword [esp + 0x10b4]
xor ecx, esp
call fcn.005be209
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [esp + 0x28]
call esi
push edi
call esi
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov ecx, dword [esp + 0x10b4]
xor ecx, esp
call fcn.005be209
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov ecx, dword [esp + 0x10b4]
xor ecx, esp
call fcn.005be209
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10bc]
mov eax, dword [esp + 0x20]
pop edi
pop esi
xor ecx, esp
call fcn.005be209
mov esp, ebp
pop ebp
ret
call fcn.005c44be
int3