Function at 0x1005d580
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10098b91
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CSmtp.0
mov dword [esi + 0x24], 0xf
mov dword [esi + 0x20], 0
mov dword [ebp - 0x118], esi
mov byte [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x3c], 0xf
mov dword [esi + 0x38], 0
mov byte [esi + 0x28], 0
mov dword [esi + 0x54], 0xf
mov dword [esi + 0x50], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x6c], 0xf
mov dword [esi + 0x68], 0
mov byte [esi + 0x58], 0
mov dword [esi + 0x84], 0xf
mov dword [esi + 0x80], 0
mov byte [esi + 0x70], 0
mov dword [esi + 0x9c], 0xf
mov dword [esi + 0x98], 0
mov byte [esi + 0x88], 0
mov dword [esi + 0xb4], 0xf
mov dword [esi + 0xb0], 0
mov byte [esi + 0xa0], 0
mov dword [esi + 0xd0], 0xf
mov dword [esi + 0xcc], 0
mov byte [esi + 0xbc], 0
mov dword [esi + 0xe8], 0xf
mov dword [esi + 0xe4], 0
mov byte [esi + 0xd4], 0
mov dword [esi + 0x100], 0xf
mov dword [esi + 0xfc], 0
mov byte [esi + 0xec], 0
mov dword [esi + 0x118], 0xf
mov dword [esi + 0x114], 0
mov byte [esi + 0x104], 0
push 0
mov byte [ebp - 4], 0xa
push 0
mov dword [esi + 0x13c], 0
mov dword [esi + 0x140], 0
call fcn.100641b0
mov dword [esi + 0x13c], eax
push 0
mov byte [ebp - 4], 0xb
push 0
mov dword [esi + 0x144], 0
mov dword [esi + 0x148], 0
call fcn.100641b0
mov dword [esi + 0x144], eax
push 0
mov byte [ebp - 4], 0xc
push 0
mov dword [esi + 0x14c], 0
mov dword [esi + 0x150], 0
call fcn.100641b0
mov dword [esi + 0x14c], eax
sub esp, 8
mov byte [ebp - 4], 0xd
mov dword [esi + 0x154], 0
mov dword [esi + 0x158], 0
call fcn.100641f0
mov dword [esi + 0x154], eax
mov byte [ebp - 4], 0xe
mov dword [esi + 0x15c], 0
mov dword [esi + 0x160], 0
push 0
push 0
call fcn.10064220
mov dword [esi + 0x15c], eax
mov byte [ebp - 4], 0xf
xor eax, eax
mov word [esi + 0x11c], ax
mov word [esi + 0x138], ax
lea eax, [ebp - 0x110]
push 0xff
push eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x12c], 0xffffffff
mov byte [esi + 0x130], 0
mov dword [esi + 0x120], 3
mov byte [esi + 0x11e], 1
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x1005d7fd
push 0x100c97d8
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x6b
push eax
call fcn.100823fd
cmp byte [ebp - 0x110], 0
jne 0x1005d80a
xor eax, eax
jmp 0x1005d81c
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005d813
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [esi + 0x10]
call fcn.100638e0
push 0x2800
call fcn.1007b2b4
add esp, 4
mov dword [esi + 0x128], eax
test eax, eax
jne 0x1005d85e
push 0x100c97d8
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x198
push eax
call fcn.100823fd
push 0x2800
call fcn.1007b2b4
add esp, 4
mov dword [esi + 0x124], eax
test eax, eax
je 0x1005d843
push 8
push str.US_ASCII
lea ecx, [esi + 0x70]
mov dword [esi + 0x168], 0
mov dword [esi + 0x16c], 0
mov dword [esi + 0x170], 0
mov byte [esi + 0x164], 0
mov byte [esi + 0xb8], 0
call fcn.100638e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007aa10
mov esp, ebp
pop ebp
ret