Function at 0x100304b7
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
lea ebp, [esp - 0x488]
sub esp, 0x504
mov eax, dword [0x100677a0]
xor eax, ebp
mov dword [ebp + 0x484], eax
mov eax, dword [ebp + 0x490]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x494]
push 0x28
mov esi, ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edi
call fcn.10038ffc
xor ebx, ebx
cmp eax, ebx
pop ecx
je 0x10030504
push ebx
mov ecx, eax
call fcn.10030199
mov dword [ebp - 0x48], eax
jmp 0x10030507
mov dword [ebp - 0x48], ebx
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
cmp eax, ebx
je 0x100307cd
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x4c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x10030559
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push 0x1005adc0
push eax
call dword [ecx]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x2c], ebx
je 0x100307c4
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
jmp 0x100307a3
cmp word [ebp - 0x7c], 0xd
jne 0x10030799
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x28]
push edx
push 0x1005adb0
mov dword [ebp - 0x28], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp dword [ebp - 0x28], ebx
je 0x10030799
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x38]
push edx
push dword [ebp - 0x28]
mov dword [ebp - 0x38], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x10030790
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x58], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test word [ebp - 0x58], 0x500
je 0x10030787
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp - 0x50], 8
je 0x10030787
cmp dword [ebp - 0x50], 9
je 0x10030787
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x30]
push edx
push dword [ebp - 0x28]
mov dword [ebp - 0x30], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x10030787
lea edx, [ebp - 0x64]
push edx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
lea edx, [ebp - 0x5c]
push edx
push eax
call dword [ecx + 0x2c]
cmp word [ebp - 0x64], bx
jne 0x10030642
cmp word [ebp - 0x5c], bx
je 0x1003077b
lea eax, [ebp - 0x20]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x1003067a
push 0x105
lea eax, [ebp + 0x37c]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x10030672
mov byte [ebp + 0x37c], bl
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x10030680
mov byte [ebp + 0x37c], bl
push 0x105
lea eax, [ebp + 0x170]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x37c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
lea edx, [ebp - 0x60]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x1003077b
push 0x28
call fcn.10038ffc
cmp eax, ebx
pop ecx
je 0x100306cc
push 3
mov ecx, eax
call fcn.10030199
mov dword [ebp - 0x34], eax
jmp 0x100306cf
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x34]
call fcn.10030455
push dword [ebp - 0x34]
lea eax, [ebp - 0x22]
push eax
push ebx
mov ecx, esi
call fcn.1002fd11
cmp byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
je 0x10030706
push dword [ebp - 0x34]
lea eax, [ebp - 0x21]
push eax
push 1
mov ecx, esi
call fcn.1002fd11
cmp byte [ebp - 0x21], bl
jne 0x1003076e
cmp edi, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x54], edi
jne 0x10030717
mov dword [ebp - 0x54], str.SLP_Discovery
movzx eax, word [esi + 8]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
lea edi, [ebp - 0x40]
push edi
push ebx
lea edi, [ebp + 0x170]
push edi
push ebx
push eax
push eax
movzx eax, byte [esi + 0xc]
push eax
push dword [ebp - 0x54]
push ecx
call dword [edx + 0x3c]
cmp dword [ebp - 0x40], ebx
je 0x1003076e
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 0x10], ebx
jne 0x10030754
xor eax, eax
cmp byte [ebp - 0x22], bl
setne al
inc eax
mov dword [ecx + 0x10], eax
push dword [ebp - 0x60]
call fcn.10030455
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
je 0x1003077b
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x7c]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10030571
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x484]
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003942d
add ebp, 0x488
leave
ret 8