Function at 0x5173a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d1e9
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x53c074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xe4], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0xa8]
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xe0], esi
mov dword [edi], vtable.ApiRouter.0
call fcn.004e4660
mov dword [ebp - 4], 0
push 0x80
mov dword [edi + 0x238], esi
lea esi, [edi + 0x24]
push 0
push esi
call fcn.004c6150
mov eax, dword [ebp - 0xe0]
push 0x80
push 0
push esi
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0xdc], eax
call fcn.004c6150
mov edx, dword [ebp - 0xdc]
add esp, 0x18
test edx, edx
je 0x51746d
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xdc], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x517450
sub ecx, dword [ebp - 0xdc]
je 0x51746d
push 0x7f
push edx
push esi
call fcn.004cbac0
add esp, 0xc
jmp 0x517476
push 0x7f
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
mov eax, dword [ebp - 0xe0]
lea esi, [edi + 4]
xorps xmm0, xmm0
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov edx, dword [eax + 0x3c]
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
test edx, edx
je 0x5174c0
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xdc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5174a0
sub ecx, dword [ebp - 0xdc]
je 0x5174c0
push 0x1f
push edx
push esi
call fcn.004cbac0
add esp, 0xc
jmp 0x5175ef
lea edx, [ebp - 0xe0]
mov dword [ebp - 0xe0], 0
lea ecx, [ebp - 0xdc]
call fcn.004b0930
test eax, eax
js 0x5175ef
mov ecx, dword [ebp - 0xe0]
xor esi, esi
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xdc], eax
test ecx, ecx
jle 0x5175d2
add eax, 0x10
cmp dword [eax - 4], 0
jne 0x51750e
cmp word [eax], 2
je 0x51751b
inc esi
add eax, 0x48
cmp esi, ecx
jl 0x517502
jmp 0x5175d2
mov eax, dword [edi + 0x238]
push 0xb
mov eax, dword [eax + 4]
mov eax, dword [eax]
movzx eax, word [eax + 0x18]
mov dword [ebp - 0xe4], eax
call fcn.004c378e
mov edx, eax
mov dword [ebp - 0xe0], eax
add esp, 4
test edx, edx
je 0x51755a
mov dword [edx + 2], 0
mov dword [edx + 6], 0
mov byte [edx + 0xa], 0
jmp 0x517562
xor edx, edx
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xdc]
mov word [edx], ax
lea eax, [esi + esi*8]
mov esi, dword [ebp - 0xe0]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 4]
add ecx, 4
mov dword [edx + 2], eax
push ecx
movzx eax, word [ecx + 4]
mov ecx, esi
mov word [edx + 6], ax
movzx eax, word [0x5312f8]
mov word [edx + 8], ax
mov al, byte [0x5312fa]
mov byte [edx + 0xa], al
lea eax, [ebp - 0xd8]
push eax
mov edx, 0xb
call fcn.004eb0e0
lea eax, [edi + 4]
mov edx, 8
push eax
lea ecx, [ebp - 0xd8]
call fcn.004f0670
push esi
call fcn.004c3789
add esp, 0x10
call fcn.004ceb5c
push dword [ebp - 0xdc]
mov esi, dword [eax]
call dword [0x53d644]
add esp, 4
call fcn.004ceb5c
mov dword [eax], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c3717
mov esp, ebp
pop ebp
ret 4