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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.004c49c0
test eax, eax
je 0x4c4a98
mov eax, 0x15
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [0x55f1a8]
mov ecx, esi
push 0x91c8
call dword [0x51a4a0]
call esi
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x4c4ac7
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.004cae20
mov dword [ebp - 0x10], 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.004ca720
add esp, 4
lea edi, [esi + 0x1a0]
mov ebx, 0x800
push edi
call fcn.004ca720
add esp, 4
add edi, 0xc
sub ebx, 1
jne 0x4c4bf2
lea edi, [esi + 0x61a0]
mov ebx, 0x400
nop
push edi
call fcn.004ca720
add esp, 4
add edi, 0xc
sub ebx, 1
jne 0x4c4c10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004c6580
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4c4f88
push str.LOCALDOMAIN
call fcn.004fba8a
add esp, 4
test eax, eax
je 0x4c4c84
cmp dword [esi + 0x28], 0xffffffff
jne 0x4c4c84
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0x51c9a8
push eax
call fcn.004ca840
mov ecx, dword [ebp - 0x10]
add esp, 0x10
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
test eax, eax
je 0x4c4c76
test ecx, ecx
jne 0x4c4c84
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xffffffff
push str.RES_OPTIONS
call fcn.004fba8a
add esp, 4
test eax, eax
je 0x4c4ca3
push eax
push esi
call fcn.004c6ba0
add esp, 8
test eax, eax
jne 0x4c4cac
push esi
call fcn.004c6890
add esp, 4
xor eax, eax
xor ebx, ebx
cmp dword [esi], 0xffffffff
mov dword [ebp - 8], eax
jne 0x4c4cba
mov dword [esi], eax
cmp dword [esi + 4], 0xffffffff
jne 0x4c4cc7
mov dword [esi + 4], 0x1388
cmp dword [esi + 8], 0xffffffff
jne 0x4c4cd4
mov dword [esi + 8], 4
cmp dword [esi + 0xc], 0xffffffff
jne 0x4c4ce1
mov dword [esi + 0xc], 1
cmp dword [esi + 0x10], 0xffffffff
jne 0x4c4cea
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0xffffffff
jne 0x4c4cfe
push 0x35
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], 0xffffffff
jne 0x4c4d12
push 0x35
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [esi + 0x18], eax
cmp dword [esi + 0x38], 0xffffffff
jne 0x4c4d1f
mov dword [esi + 0x38], 0x500
cmp dword [esi + 0x78], 0xffffffff
jne 0x4c4d6f
mov edi, dword [0x55f1a8]
mov ecx, edi
push 0x58
call dword [0x51a4a0]
call edi
add esp, 4
mov dword [esi + 0x74], eax
test eax, eax
je 0x4c4e86
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], ebx
mov eax, dword [esi + 0x74]
mov dword [eax + 0x18], ebx
mov dword [esi + 0x78], 1
cmp dword [esi + 0x28], 0xffffffff
jne 0x4c4e50
mov dword [esi + 0x28], ebx
mov edi, dword [0x55f1a8]
mov ecx, edi
push 0x40
mov dword [ebp - 0x10], 0x40
mov dword [ebp - 0xc], 0x40
call dword [0x51a4a0]
call edi
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c4e86
nop dword [eax]
mov edi, dword [ebp - 0x10]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x4c4dfb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x4c4dff
mov eax, dword [ebp - 0xc]
add edi, edi
add eax, eax
mov dword [ebp - 0x10], edi
mov edi, dword [0x55f1ac]
mov ecx, edi
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [0x51a4a0]
call edi
add esp, 8
test eax, eax
je 0x4c4e86
mov ebx, eax
jmp 0x4c4db0
test eax, eax
je 0x4c4e02
mov byte [ebx], 0
push 0x2e
push ebx
call fcn.004e80a0
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4c4e50
mov edi, dword [0x55f1a8]
mov ecx, edi
push 4
call dword [0x51a4a0]
call edi
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
je 0x4c4e86
mov edi, eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.004ca7d0
mov dword [edi], eax
add esp, 4
mov eax, dword [esi + 0x24]
cmp dword [eax], 0
je 0x4c4e86
mov dword [esi + 0x28], 1
cmp dword [esi + 0x30], 0xffffffff
jne 0x4c4e64
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
cmp dword [esi + 0x34], 0
jne 0x4c4f43
push 0x52ed28
call fcn.004ca7d0
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
jne 0x4c4f43
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4c4ea8
mov edi, dword [fcn.004b7430]
mov ecx, edi
push eax
call dword [0x51a4a0]
call edi
add esp, 4
mov dword [esi + 0x74], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4c4eeb
mov ecx, dword [eax]
test ecx, ecx
je 0x4c4ecc
mov edi, dword [fcn.004b7430]
push ecx
mov ecx, edi
call dword [0x51a4a0]
call edi
mov eax, dword [esi + 0x24]
add esp, 4
test eax, eax
je 0x4c4eeb
mov edi, dword [fcn.004b7430]
mov ecx, edi
push eax
call dword [0x51a4a0]
call edi
add esp, 4
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4c4f0d
mov edi, dword [fcn.004b7430]
mov ecx, edi
push eax
call dword [0x51a4a0]
call edi
add esp, 4
mov dword [esi + 0x34], 0
mov ecx, dword [esi + 0x91c0]
mov dword [ebp - 8], 0xf
test ecx, ecx
je 0x4c4f43
mov edi, dword [fcn.004b7430]
push ecx
mov ecx, edi
call dword [0x51a4a0]
call edi
add esp, 4
mov dword [esi + 0x91c0], 0
mov dword [ebp - 8], 0xf
test ebx, ebx
je 0x4c4f5b
mov edi, dword [fcn.004b7430]
mov ecx, edi
push ebx
call dword [0x51a4a0]
call edi
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
jne 0x4c4f88
mov edi, dword [0x55f1a8]
lea ebx, [esi + 0x7e]
push 0x1f
mov ecx, edi
call dword [0x51a4a0]
call edi
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4c5028
lea ebx, [eax + 0xf]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4c4fa3
mov edi, dword [fcn.004b7430]
mov ecx, edi
push eax
call dword [0x51a4a0]
call edi
add esp, 4
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
je 0x4c4fb7
push eax
push dword [esi + 0x24]
call fcn.004caaf0
add esp, 8
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4c4fd2
mov edi, dword [fcn.004b7430]
mov ecx, edi
push eax
call dword [0x51a4a0]
call edi
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4c4fed
mov edi, dword [fcn.004b7430]
mov ecx, edi
push eax
call dword [0x51a4a0]
call edi
add esp, 4
mov eax, dword [esi + 0x91c0]
test eax, eax
je 0x4c500b
mov edi, dword [fcn.004b7430]
mov ecx, edi
push eax
call dword [0x51a4a0]
call edi
add esp, 4
push esi
mov esi, dword [fcn.004b7430]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
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
nop dword [eax]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, dx
jl 0x4c5050
mov eax, dword [0x564308]
xor edi, edi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4c5080
push 0x1f
push ebx
mov ecx, eax
call dword [0x51a4a0]
call dword [ebp - 0x10]
test al, al
jne 0x4c509c
nop dword [eax]
call fcn.004f0778
and eax, 0x800000ff
jns 0x4c5093
dec eax
or eax, 0xffffff00
inc eax
mov byte [edi + ebx], al
inc edi
cmp edi, 0x1f
jl 0x4c5080
xor al, al
mov word [ebx + 0x100], 0
xor cl, cl
mov dword [ebp - 0x10], 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 - 0x10], 1
mov cl, byte [ebp - 1]
mov al, dl
jne 0x4c50b2
push dword [ebp - 0xc]
mov edi, dword [fcn.004b7430]
mov ecx, edi
call dword [0x51a4a0]
call edi
push ebx
call fcn.004cab40
mov esi, dword [ebp - 0x18]
add esp, 8
mov word [esi + 0x7c], ax
test byte [esi], 2
je 0x4c511f
cmp dword [esi + 0x78], 1
jle 0x4c511f
mov dword [esi + 0x78], 1
xor ebx, ebx
cmp dword [esi + 0x78], ebx
jle 0x4c51a1
xor eax, eax
mov dword [ebp - 0x10], eax
nop dword [eax + eax]
mov edi, dword [esi + 0x74]
add edi, eax
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.004ca720
mov eax, dword [ebp - 0x10]
inc ebx
add eax, 0x58
mov dword [edi + 0x50], esi
add esp, 4
mov dword [edi + 0x54], 0
mov dword [ebp - 0x10], eax
cmp ebx, dword [esi + 0x78]
jl 0x4c5130
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword [eax], esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret