Function at 0x546e20
Capabilities:
Get hostname
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
call fcn.00546d70
test eax, eax
je 0x546e35
mov eax, 0x15
add esp, 0x14
ret
push esi
push 0x91c8
call dword [0x5f09c4]
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
jne 0x546e5c
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
lea eax, [esi + 0xf]
pop esi
add esp, 0x14
ret
push ebx
push edi
call fcn.0054d000
mov dword [esp + 0x18], edx
xorps xmm0, xmm0
cdq
mov dword [esi + 0x188], eax
lea eax, [esi + 0x194]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x180], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x91a0], 0
mov dword [esi + 0x91a4], 0
mov dword [esi + 0x91a8], 0
mov dword [esi + 0x91ac], 0
mov dword [esi + 0x91b0], 0
mov dword [esi + 0x91b4], 0
mov dword [esi + 0x91b8], 0
mov dword [esi + 0x91bc], 0
mov dword [esi + 0x91c0], 0
mov dword [esi + 0x190], 0
mov dword [esi + 0x18c], edx
movups xmmword [esi + 0x3c], xmm0
push eax
movups xmmword [esi + 0x4c], xmm0
mov dword [esi + 0x5c], 0
movups xmmword [esi + 0x60], xmm0
call fcn.0054c910
add esp, 4
lea edi, [esi + 0x1a0]
mov ebx, 0x800
push edi
call fcn.0054c910
add esp, 4
add edi, 0xc
sub ebx, 1
jne 0x546f88
lea edi, [esi + 0x61a0]
mov ebx, 0x400
push edi
call fcn.0054c910
add esp, 4
add edi, 0xc
sub ebx, 1
jne 0x546fa4
push ebp
push dword [esp + 0x30]
push dword [esp + 0x30]
push esi
call fcn.005486c0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x54728e
push str.LOCALDOMAIN
call fcn.00574aad
add esp, 4
test eax, eax
je 0x54701d
cmp dword [esi + 0x28], 0xffffffff
jne 0x54701d
lea ecx, [esp + 0x18]
push ecx
push 1
push 0x5b1a6c
push eax
call fcn.0054ca10
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
test eax, eax
je 0x54700f
test ecx, ecx
jne 0x54701d
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xffffffff
push str.RES_OPTIONS
call fcn.00574aad
add esp, 4
test eax, eax
je 0x54703c
push eax
push esi
call fcn.00548cb0
add esp, 8
test eax, eax
jne 0x547045
push esi
call fcn.005489a0
add esp, 4
xor eax, eax
xor edi, edi
cmp dword [esi], 0xffffffff
mov dword [esp + 0x14], eax
jne 0x547054
mov dword [esi], eax
cmp dword [esi + 4], 0xffffffff
jne 0x547061
mov dword [esi + 4], 0x1388
cmp dword [esi + 8], 0xffffffff
jne 0x54706e
mov dword [esi + 8], 4
cmp dword [esi + 0xc], 0xffffffff
jne 0x54707b
mov dword [esi + 0xc], 1
cmp dword [esi + 0x10], 0xffffffff
jne 0x547084
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0xffffffff
mov ebx, dword [sym.imp.WS2_32.dll_htons]
jne 0x54709a
push 0x35
call ebx
movzx eax, ax
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], 0xffffffff
jne 0x5470aa
push 0x35
call ebx
movzx eax, ax
mov dword [esi + 0x18], eax
cmp dword [esi + 0x38], 0xffffffff
jne 0x5470b7
mov dword [esi + 0x38], 0x500
cmp dword [esi + 0x78], 0xffffffff
jne 0x5470fd
push 0x58
call dword [0x5f09c4]
add esp, 4
mov dword [esi + 0x74], eax
test eax, eax
je 0x5471da
push 0x7f000001
mov dword [eax], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esi + 0x74]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x74]
mov dword [eax + 0x14], edi
mov eax, dword [esi + 0x74]
mov dword [eax + 0x18], edi
mov dword [esi + 0x78], 1
cmp dword [esi + 0x28], 0xffffffff
jne 0x5471a4
mov ebx, 0x40
mov dword [esi + 0x28], edi
push ebx
mov ebp, ebx
call dword [0x5f09c4]
mov edi, eax
add esp, 4
test edi, edi
je 0x5471da
push ebx
push edi
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x54715a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x54715e
add ebp, ebp
add ebx, ebx
push ebp
push edi
call dword [0x5f09c8]
add esp, 8
test eax, eax
je 0x5471da
mov edi, eax
jmp 0x547125
test eax, eax
je 0x547161
mov byte [edi], 0
push 0x2e
push edi
call fcn.00558c90
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x5471a4
push 4
call dword [0x5f09c4]
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
je 0x5471da
lea eax, [ebx + 1]
push eax
call fcn.0054c9c0
mov ecx, dword [esi + 0x24]
add esp, 4
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
cmp dword [eax], 0
je 0x5471da
mov dword [esi + 0x28], 1
cmp dword [esi + 0x30], 0xffffffff
jne 0x5471b8
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
cmp dword [esi + 0x34], 0
jne 0x54725f
push 0x5bedc4
call fcn.0054c9c0
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
jne 0x54725f
mov dword [esp + 0x14], 0xf
mov eax, dword [esi + 0x74]
test eax, eax
je 0x5471fa
push eax
call dword [0x5f09cc]
add esp, 4
mov dword [esi + 0x74], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x547211
mov eax, dword [eax]
test eax, eax
je 0x547211
push eax
call dword [0x5f09cc]
add esp, 4
mov eax, dword [esi + 0x24]
test eax, eax
je 0x547229
push eax
call dword [0x5f09cc]
add esp, 4
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x547241
push eax
call dword [0x5f09cc]
add esp, 4
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x91c0]
test eax, eax
je 0x54725f
push eax
call dword [0x5f09cc]
add esp, 4
mov dword [esi + 0x91c0], 0
test edi, edi
je 0x54726d
push edi
call dword [0x5f09cc]
add esp, 4
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x54728e
push 0x1f
lea ebx, [esi + 0x7e]
call dword [0x5f09c4]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5472fd
lea ebx, [eax + 0xf]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x54729f
push eax
call dword [0x5f09cc]
add esp, 4
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
je 0x5472b3
push eax
push dword [esi + 0x24]
call fcn.0054cca0
add esp, 8
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x5472c4
push eax
call dword [0x5f09cc]
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x5472d5
push eax
call dword [0x5f09cc]
add esp, 4
mov eax, dword [esi + 0x91c0]
test eax, eax
je 0x5472e9
push eax
call dword [0x5f09cc]
add esp, 4
push esi
call dword [0x5f09cc]
add esp, 4
mov eax, ebx
pop ebp
pop edi
pop ebx
pop esi
add esp, 0x14
ret
xorps xmm0, xmm0
mov ecx, ebx
movups xmmword [eax], xmm0
mov edx, 0x100
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
mov word [eax + 0x1c], 0
mov byte [eax + 0x1e], 0
xor eax, eax
mov byte [ecx], al
inc eax
inc ecx
cmp ax, dx
jl 0x547322
mov eax, dword [0x6099f0]
xor edi, edi
test eax, eax
je 0x547340
push 0x1f
push ebx
call eax
test al, al
jne 0x54735c
nop
call fcn.005628f7
and eax, 0x800000ff
jns 0x547353
dec eax
or eax, 0xffffff00
inc eax
mov byte [edi + ebx], al
inc edi
cmp edi, 0x1f
jl 0x547340
mov esi, dword [esp + 0x18]
xor al, al
mov word [ebx + 0x100], 0
xor cl, cl
mov ebp, ebx
mov dword [esp + 0x14], 0x100
mov dl, byte [ebp]
lea ebp, [ebp + 1]
movzx edi, al
mov al, byte [edi + esi]
add al, dl
add cl, al
mov byte [esp + 0x13], cl
movzx ecx, cl
mov al, byte [ecx + ebx]
mov byte [ebp - 1], al
lea eax, [edi + 1]
mov byte [ecx + ebx], dl
xor edx, edx
mov ecx, 0x1f
div ecx
sub dword [esp + 0x14], 1
mov cl, byte [esp + 0x13]
mov al, dl
jne 0x547377
push dword [esp + 0x18]
call dword [0x5f09cc]
push ebx
call fcn.0054cce0
mov esi, dword [esp + 0x28]
add esp, 8
mov word [esi + 0x7c], ax
test byte [esi], 2
je 0x5473dd
cmp dword [esi + 0x78], 1
jle 0x5473dd
mov dword [esi + 0x78], 1
xor ebx, ebx
cmp dword [esi + 0x78], ebx
jle 0x54745b
xor ebp, ebp
nop word [eax + eax]
mov edi, dword [esi + 0x74]
add edi, ebp
mov dword [edi + 0x1c], 0xffffffff
mov dword [edi + 0x20], 0xffffffff
inc dword [esi + 0x180]
mov eax, dword [esi + 0x180]
mov dword [edi + 0x40], eax
lea eax, [edi + 0x44]
push eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.0054c910
inc ebx
mov dword [edi + 0x50], esi
add esp, 4
mov dword [edi + 0x54], 0
add ebp, 0x58
cmp ebx, dword [esi + 0x78]
jl 0x5473f0
mov eax, dword [esp + 0x28]
pop ebp
pop edi
pop ebx
mov dword [eax], esi
xor eax, eax
pop esi
add esp, 0x14
ret