Function at 0x401750
Capabilities:
Get hostname

Disassembly:
mov eax, 0x2124
call fcn.00408750
push esi
push edi
lea eax, [esp + 0x2c]
push 0x100
push eax
call sub.WSOCK32.dll_gethostname
push 0x40b01c
lea ecx, [esp + 0x30]
push 0x40b01c
push ecx
call fcn.00404f10
lea edx, [esp + 0x38]
push 0x40b040
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x14
test eax, eax
jne 0x4017ba
mov edi, str.host_adm
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 8
xor eax, eax
lea edi, [esp + 8]
mov edx, dword [esp + 0x2134]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x132]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
mov byte [esp + 0x10], 0x80
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x11], 2
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov word [esp + 0x130], cx
mov ecx, dword [esp + 0x130]
and ecx, 0xffff
mov byte [esp + 0x12], 0xa
lea edi, [esp + 0x30]
lea edx, [esp + ecx + 0x132]
or ecx, 0xffffffff
mov dword [edx + 2], 1
mov word [edx], 4
add edx, 6
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [edx + 2]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edi, [esp + 0x30]
lea eax, [ecx]
or ecx, 0xffffffff
mov word [edx], ax
and eax, 0xffff
lea edx, [edx + eax + 2]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [edx + 2]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx]
lea edi, [esp + 0xb0]
mov word [edx], ax
and eax, 0xffff
or ecx, 0xffffffff
mov byte [esp + 0xb0], 0
lea edx, [edx + eax + 2]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [edx + 2]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [esp + 0x2134]
lea eax, [ecx]
push edi
mov word [edx], ax
and eax, 0xffff
lea esi, [edx + eax + 2]
mov word [esi], 0x7fff
call fcn.00409720
mov ebx, eax
lea eax, [esp + 0x134]
push 0x124f80
lea ecx, [esp + 0x138]
sub esi, eax
push 0x2000
lea edx, [esp + 0x18]
push ecx
add esi, 2
push edx
lea ecx, [esp + 0x144]
push esi
lea edx, [esp + 0x24]
push ecx
push edx
push ebx
push edi
call fcn.00409ad0
push ebx
push edi
mov esi, eax
call fcn.004097e0
add esp, 0x30
cmp esi, 0x7fffffff
pop ebx
jne 0x401972
pop edi
xor eax, eax
pop esi
add esp, 0x2124
ret
cmp byte [esp + 0xe], 0xb
je 0x401984
pop edi
xor eax, eax
pop esi
add esp, 0x2124
ret
lea edi, [esp + 0x12e]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x2138]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x2124
ret