Function at 0x107219e
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 0x100cd84
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x11c], eax
call fcn.01038411
lea eax, [ebp - 0x110]
push eax
xor ebx, ebx
push 0x1009908
push 1
push ebx
push 0x1028e3c
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 0x10723ac
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
lea edx, [ebp - 0x120]
push edx
push 0x1028e4c
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x10723ac
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 0x10723ac
mov eax, dword [ebp - 0x108]
cmp eax, ebx
je 0x10723ac
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 0x10722a5
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
jne 0x10722d2
call sub.WSOCK32.dll_WSAGetLastError
test eax, eax
jg 0x10722ba
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
jmp 0x10723ac
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10723ac
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 0x107234d
push dword [ebp - 0x124]
lea ecx, [ebp - 0x124]
call fcn.01038411
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 0x10723ac
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 0x10723ac
push dword [ebp - 0x118]
lea ecx, [ebp - 0x1ac]
call fcn.0103ff67
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 0x10723a6
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 0x10723c2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x110], ebx
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
je 0x10723fa
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 0x1072410
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x108], ebx
mov eax, dword [ebp - 0x120]
cmp eax, ebx
je 0x1072422
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.0105ec09
leave
ret