Function at 0x4ad7c0
Capabilities:
Create http request
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edd3d
mov eax, dword fs:[0]
push eax
sub esp, 0x754
mov eax, dword [0x670f1c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
cmp byte [edi + 0x196a6], 0
mov dword [ebp - 0x760], edi
je 0x4ada3a
push 0x3ff
lea eax, [ebp - 0x753]
push 0
push eax
mov byte [ebp - 0x754], 0
call fcn.004c16f0
push 0xff
lea ecx, [ebp - 0x154]
push 0
push ecx
mov byte [ebp - 0x755], 0
call fcn.004c16f0
add esp, 0x18
push 0xff
lea edx, [ebp - 0x154]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x1ff
lea ecx, [ebp - 0x353]
push 0
push ecx
mov byte [ebp - 0x354], 0
call fcn.004c16f0
xor eax, eax
lea ebx, [edi + 0x196d2]
push 0x510410
push ebx
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x54], al
mov dword [ebp - 0x53], eax
mov dword [ebp - 0x4f], eax
mov dword [ebp - 0x4b], eax
mov dword [ebp - 0x47], eax
mov dword [ebp - 0x43], eax
mov dword [ebp - 0x3f], eax
mov dword [ebp - 0x3b], eax
mov word [ebp - 0x37], ax
mov byte [ebp - 0x35], al
call fcn.004c1d30
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4ada3a
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4ad8e0
sub eax, edx
mov ecx, eax
mov eax, esi
lea edx, [eax + 1]
mov dword [ebp - 0x75c], edx
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4ad8f8
sub eax, dword [ebp - 0x75c]
sub ecx, eax
push ecx
push ebx
lea eax, [ebp - 0x54]
push 0x20
push eax
call fcn.004c8f25
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x34]
push 0x20
push edx
call fcn.004c1687
push 0x510414
lea eax, [ebp - 0x34]
push 0x20
push eax
call fcn.004c9c1f
push esi
lea ecx, [ebp - 0x34]
push 0x20
push ecx
call fcn.004c9c1f
add esp, 0x34
cmp dword [edi + 0x196a2], 0x10
jb 0x4ad955
mov eax, dword [edi + 0x1968e]
jmp 0x4ad95b
lea eax, [edi + 0x1968e]
push eax
lea edx, [ebp - 0x34]
push edx
push 0x510418
lea eax, [ebp - 0x354]
push 0x200
push eax
call fcn.004c6866
lea ecx, [ebp - 0x354]
push ecx
push 0x510428
push 0x510460
lea edx, [ebp - 0x754]
push 0x400
push edx
call fcn.004c6866
add esp, 0x28
lea eax, [ebp - 0x754]
push eax
lea ecx, [ebp - 0x75c]
call fcn.00410de0
mov esi, eax
mov eax, dword [esi]
sub eax, 0x10
mov ebx, 1
cmp dword [eax + 0xc], ebx
mov dword [ebp - 4], 0
jle 0x4ad9d0
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00406b50
mov esi, dword [esi]
push esi
add edi, 0x192ac
push 0x510468
push edi
call fcn.00418e60
mov eax, dword [ebp - 0x75c]
add eax, 0xfffffff0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ada10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0
push 0
push 0x510470
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
jne 0x4ada41
push 0x510478
push edi
call fcn.00418ea0
add esp, 8
xor al, al
jmp 0x4adac7
push 0
push 0x24000000
push 0
push 0
lea ecx, [ebp - 0x754]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
jne 0x4ada83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
call ebx
push esi
call ebx
push 0x51049c
push edi
call fcn.00418ea0
add esp, 8
xor al, al
jmp 0x4adac7
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call ebx
push esi
call ebx
push 0x5104c8
push edi
call fcn.00418ea0
add esp, 8
mov al, 1
jmp 0x4adac7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bfdfd
mov esp, ebp
pop ebp
ret