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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.004ed3c0
test eax, eax
je 0x4ed4b8
mov eax, 0x15
mov esp, ebp
pop ebp
ret
push esi
push 0x91b0
call fcn.005b38c6
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4ed4dc
mov eax, dword [ebp + 8]
mov dword [eax], esi
lea eax, [esi + 0xf]
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
call fcn.004f1bf0
mov dword [ebp - 0xc], 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 + 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.004f1890
add esp, 4
lea edi, [esi + 0x1a0]
mov ebx, 0x800
push edi
call fcn.004f1890
add esp, 4
add edi, 0xc
sub ebx, 1
jne 0x4ed5d5
lea edi, [esi + 0x61a0]
mov ebx, 0x400
push edi
call fcn.004f1890
add esp, 4
add edi, 0xc
sub ebx, 1
jne 0x4ed5f1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004ee210
add esp, 0xc
test eax, eax
jne 0x4ed662
push str.LOCALDOMAIN
call fcn.005b2ce2
add esp, 4
test eax, eax
je 0x4ed63a
cmp dword [esi + 0x28], 0xffffffff
jne 0x4ed63a
push eax
push esi
call fcn.004ee7a0
add esp, 8
test eax, eax
jne 0x4ed662
push str.RES_OPTIONS
call fcn.005b2ce2
add esp, 4
test eax, eax
je 0x4ed659
push eax
push esi
call fcn.004ee640
add esp, 8
test eax, eax
jne 0x4ed662
push esi
call fcn.004ee4a0
add esp, 4
xor edi, edi
xor ebx, ebx
cmp dword [esi], 0xffffffff
jne 0x4ed66d
mov dword [esi], ebx
cmp dword [esi + 4], 0xffffffff
jne 0x4ed67a
mov dword [esi + 4], 0x1388
cmp dword [esi + 8], 0xffffffff
jne 0x4ed687
mov dword [esi + 8], 4
cmp dword [esi + 0xc], 0xffffffff
jne 0x4ed694
mov dword [esi + 0xc], 1
cmp dword [esi + 0x10], 0xffffffff
jne 0x4ed69d
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], 0xffffffff
mov eax, dword [sym.imp.WS2_32.dll_htons]
jne 0x4ed6b7
push 0x35
call eax
movzx eax, ax
mov dword [esi + 0x14], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x18], 0xffffffff
jne 0x4ed6c7
push 0x35
call eax
movzx eax, ax
mov dword [esi + 0x18], eax
cmp dword [esi + 0x38], 0xffffffff
jne 0x4ed6d4
mov dword [esi + 0x38], 0x500
cmp dword [esi + 0x78], 0xffffffff
jne 0x4ed70d
push 0x50
call fcn.005b38c6
add esp, 4
mov dword [esi + 0x74], eax
test eax, eax
je 0x4ed7ee
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 dword [esi + 0x78], 1
cmp dword [esi + 0x28], 0xffffffff
jne 0x4ed7c9
push 0x40
mov dword [esi + 0x28], ebx
call fcn.005b38c6
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x4ed732
jmp 0x4ed7ee
push 0x40
push edi
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x4ed794
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x4ed798
push 0x80
push edi
call fcn.005c09d6
add esp, 8
test eax, eax
jne 0x4ed767
mov edi, dword [ebp - 8]
jmp 0x4ed7ee
mov edi, eax
mov dword [ebp - 8], edi
push 0x2e
push edi
call fcn.005d6ec0
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4ed7c6
push 4
call fcn.005b38c6
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
jne 0x4ed7a2
mov edi, dword [ebp - 8]
jmp 0x4ed7ee
test eax, eax
je 0x4ed76c
mov edi, dword [ebp - 8]
mov ebx, 8
jmp 0x4ed7f3
mov edi, eax
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.005c113f
mov dword [edi], eax
add esp, 4
mov eax, dword [esi + 0x24]
mov edi, dword [ebp - 8]
cmp dword [eax], ebx
je 0x4ed7ee
mov dword [esi + 0x28], 1
jmp 0x4ed7c9
mov edi, dword [ebp - 8]
cmp dword [esi + 0x30], 0xffffffff
jne 0x4ed7d5
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
cmp dword [esi + 0x34], ebx
jne 0x4ed84e
push 0x61674c
call fcn.005c113f
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
jne 0x4ed84e
mov ebx, 0xf
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4ed80a
push eax
call fcn.005b78c8
add esp, 4
mov dword [esi + 0x74], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4ed837
mov ecx, dword [eax]
test ecx, ecx
je 0x4ed827
push ecx
call fcn.005b78c8
mov eax, dword [esi + 0x24]
add esp, 4
test eax, eax
je 0x4ed837
push eax
call fcn.005b78c8
add esp, 4
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4ed84e
push eax
call fcn.005b78c8
add esp, 4
mov dword [esi + 0x34], 0
test edi, edi
je 0x4ed85b
push edi
call fcn.005b78c8
add esp, 4
test ebx, ebx
jne 0x4ed878
push 0x1f
push 1
lea ebx, [esi + 0x7e]
call fcn.005b9df5
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4ed8f2
lea ebx, [eax + 0xf]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4ed888
push eax
call fcn.005b78c8
add esp, 4
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4ed8c0
xor edi, edi
cmp dword [esi + 0x28], edi
jle 0x4ed8b7
nop word [eax + eax]
mov eax, dword [esi + 0x24]
push dword [eax + edi*4]
call fcn.005b78c8
inc edi
add esp, 4
cmp edi, dword [esi + 0x28]
jl 0x4ed8a0
mov eax, dword [esi + 0x24]
push eax
call fcn.005b78c8
add esp, 4
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4ed8d0
push eax
call fcn.005b78c8
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4ed8e0
push eax
call fcn.005b78c8
add esp, 4
push esi
call fcn.005b78c8
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, ebx
mov edx, 0x100
nop dword [eax + eax]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, dx
jl 0x4ed900
mov eax, dword [0x6a1d7c]
xor edi, edi
test eax, eax
je 0x4ed920
push 0x1f
push ebx
call eax
test al, al
jne 0x4ed93c
nop dword [eax]
call fcn.005bf451
and eax, 0x800000ff
jns 0x4ed933
dec eax
or eax, 0xffffff00
inc eax
mov byte [edi + ebx], al
inc edi
cmp edi, 0x1f
jl 0x4ed920
xor al, al
mov word [ebx + 0x100], 0
xor cl, cl
mov dword [ebp - 8], 0x100
mov esi, ebx
mov dl, byte [esi]
lea esi, [esi + 1]
movzx edi, al
mov eax, dword [ebp - 0xc]
mov al, byte [edi + eax]
add al, dl
add cl, al
mov byte [ebp - 1], cl
movzx ecx, cl
mov al, byte [ecx + ebx]
mov byte [esi - 1], al
lea eax, [edi + 1]
mov byte [ecx + ebx], dl
xor edx, edx
mov ecx, 0x1f
div ecx
sub dword [ebp - 8], 1
mov cl, byte [ebp - 1]
mov al, dl
jne 0x4ed952
push dword [ebp - 0xc]
call fcn.005b78c8
push ebx
call fcn.004f1940
mov esi, dword [ebp - 0x14]
add esp, 8
test byte [esi], 2
mov word [esi + 0x7c], ax
je 0x4ed9b4
cmp dword [esi + 0x78], 1
jle 0x4ed9b4
mov dword [esi + 0x78], 1
xor ebx, ebx
cmp dword [esi + 0x78], ebx
jle 0x4eda31
xor eax, eax
mov dword [ebp - 0xc], eax
mov edi, dword [esi + 0x74]
add edi, eax
mov dword [edi + 0x14], 0xffffffff
mov dword [edi + 0x18], 0xffffffff
inc dword [esi + 0x180]
mov eax, dword [esi + 0x180]
mov dword [edi + 0x38], eax
lea eax, [edi + 0x3c]
push eax
mov dword [edi + 0x20], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
call fcn.004f1890
mov eax, dword [ebp - 0xc]
inc ebx
add eax, 0x50
mov dword [edi + 0x48], esi
add esp, 4
mov dword [edi + 0x4c], 0
mov dword [ebp - 0xc], eax
cmp ebx, dword [esi + 0x78]
jl 0x4ed9c0
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword [eax], esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret