Function at 0x107223e
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x111121c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [0x1113c80]
push edi
mov esi, ecx
push 0x100cd94
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x11c], eax
call fcn.010384b1
lea eax, [ebp - 0x110]
push eax
xor ebx, ebx
push 0x1009918
push 1
push ebx
push 0x1028e5c
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x10c], ebx
mov byte [esi + 0x14], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
mov edi, 0xa4d1
jl 0x107244c
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
lea edx, [ebp - 0x120]
push edx
push 0x1028e6c
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x107244c
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jl 0x107244c
mov eax, dword [ebp - 0x108]
cmp eax, ebx
je 0x107244c
mov ecx, dword [ebp - 0x114]
mov dword [ecx + 8], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x1072345
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
jne 0x1072372
call sub.WSOCK32.dll_WSAGetLastError
test eax, eax
jg 0x107235a
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
jmp 0x107244c
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x107244c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.WSOCK32.dll_inet_ntoa
lea edx, [ebp - 0x10c]
push edx
push dword [ebp - 0x11c]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x20]
cmp dword [ebp - 0x10c], ebx
mov esi, eax
jne 0x10723ed
push dword [ebp - 0x124]
lea ecx, [ebp - 0x124]
call fcn.010384b1
mov eax, dword [eax]
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx]
lea esi, [ebp - 0x10c]
push esi
push dword [ebp - 0x128]
push 1
push eax
push edi
push dword [ebp - 0x11c]
push edi
push ecx
call dword [edx + 0x2c]
push dword [ebp - 0x124]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, ebx
jl 0x107244c
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
lea edx, [ebp - 0x118]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jl 0x107244c
push dword [ebp - 0x118]
lea ecx, [ebp - 0x1ac]
call fcn.01040007
push dword [eax]
call sub.WSOCK32.dll_inet_addr
mov esi, dword [ebp - 0x114]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x1a8]
cmp dword [ebp - 0x1ac], eax
je 0x1072446
push dword [ebp - 0x1ac]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov byte [esi + 4], 1
xor esi, esi
mov eax, dword [ebp - 0x110]
cmp eax, ebx
je 0x1072462
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x110], ebx
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
je 0x107249a
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x3c]
push dword [ebp - 0x11c]
mov esi, eax
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10c], ebx
mov eax, dword [ebp - 0x108]
cmp eax, ebx
je 0x10724b0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x108], ebx
mov eax, dword [ebp - 0x120]
cmp eax, ebx
je 0x10724c2
mov ecx, dword [ebp - 0x114]
mov dword [ecx], eax
push dword [ebp - 0x118]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp - 0x128]
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0105eca9
leave
ret