Function at 0x4edc1c
Capabilities:
Connect to http server

Disassembly:
push 0x80
mov eax, 0x5da3f3
call fcn.005234e3
mov esi, ecx
mov dword [ebp - 0x20], esi
xor ebx, ebx
mov dword [esi + 0x360], ebx
mov dword [esi + 0x364], ebx
mov dword [ebp - 4], ebx
mov edi, 0x721f18
cmp dword [0x722500], ebx
jne 0x4edc85
mov ecx, edi
call fcn.004bde87
cmp dword [0x722500], ebx
jne 0x4edc85
push esi
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x1c], esp
push ebx
push str._NC.CHttp.InetSession
call fcn.004ac9bc
mov byte [ebp - 4], 1
mov byte [ebp - 4], bl
mov ecx, edi
call fcn.004bc4ff
jmp 0x4ede1b
lea ecx, [esi + 0x224]
call fcn.004acb45
mov ecx, dword [0x722500]
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x360], eax
cmp word [0x7221b8], 2
jne 0x4edd19
cmp eax, ebx
je 0x4edd19
cmp dword [0x722228], ebx
je 0x4edce9
mov eax, dword [0x72222c]
cmp eax, ebx
je 0x4edce9
mov dword [ebp - 0x14], eax
mov ecx, 0x722228
call fcn.004acb45
push dword [ebp - 0x14]
push eax
push 0x2b
push dword [esi + 0x360]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [0x72224c], ebx
je 0x4edd19
mov eax, dword [0x722250]
cmp eax, ebx
je 0x4edd19
mov dword [ebp - 0x14], eax
mov ecx, 0x72224c
call fcn.004acb45
push dword [ebp - 0x14]
push eax
push 0x2c
push dword [esi + 0x360]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [esi + 0x360], ebx
jne 0x4ede27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push ebx
push str.connecthttp.Connect.
lea ecx, [ebp - 0x44]
call fcn.004ac9bc
mov byte [ebp - 4], 2
push ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x68]
call fcn.004ac6f7
mov byte [ebp - 4], 3
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
lea eax, [ebp - 0x44]
push eax
push ecx
call fcn.004adc57
add esp, 0xc
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.004ea560
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.004ac66a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.004ac66a
push ebx
push 0x69ec70
lea ecx, [ebp - 0x68]
call fcn.004ac9bc
mov byte [ebp - 4], 5
push ebx
push str._NC.CHttp.IConn.
lea ecx, [ebp - 0x44]
call fcn.004ac9bc
mov byte [ebp - 4], 6
push esi
push ebx
push ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x8c]
call fcn.004ac6f7
mov byte [ebp - 4], 7
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [esi + 0x224]
push eax
lea eax, [ebp - 0x44]
push eax
push ecx
call fcn.004adcdd
add esp, 0x14
mov byte [ebp - 4], 8
mov byte [ebp - 4], 7
mov ecx, edi
call fcn.004bc4ff
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8c]
call fcn.004ac66a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.004ac66a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x68]
call fcn.004ac66a
or dword [ebp - 0x18], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4ede67
lea eax, [esi + 0x178]
mov byte [eax], bl
push str.00000000
push eax
call fcn.00526410
pop ecx
pop ecx
push 0x1f40
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004ec9ac
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x4ede67
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.004eda50
mov dword [ebp - 0x18], eax
or dword [ebp - 4], 0xffffffff
jmp 0x4ede85
cmp dword [ebp - 0x18], ebx
je 0x4edef8
mov eax, dword [esi + 0x364]
cmp eax, ebx
je 0x4edea1
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x364], ebx
mov eax, dword [esi + 0x36c]
cmp eax, ebx
je 0x4edeb8
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x36c], ebx
mov eax, dword [esi + 0x360]
cmp eax, ebx
je 0x4edecf
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x360], ebx
push esi
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x20], esp
push ebx
push str._NC.CHttp.Conn.Failed
call fcn.004ac9bc
mov dword [ebp - 4], 0xa
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.004bc4ff
jmp 0x4edf3b
push esi
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x20], esp
push ebx
cmp dword [esi + 0x15c], 4
jne 0x4edf1f
push str._NC.CHttp.Conned.Fast
call fcn.004ac9bc
mov dword [ebp - 4], 0xb
jmp 0x4edf30
push str._NC.CHttp.Conned
call fcn.004ac9bc
mov dword [ebp - 4], 0xc
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.0044d683
mov eax, dword [ebp - 0x18]
call fcn.00523588
ret