Function at 0x44ae90
Capabilities:
Get hostname
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.0044ac50
test eax, eax
je 0x44aea8
mov eax, 0x15
mov esp, ebp
pop ebp
ret
push esi
push 0x91c8
call dword [0x501134]
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x44aecd
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.00451980
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 + 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.00451320
add esp, 4
lea edi, [esi + 0x1a0]
mov ebx, 0x800
push edi
call fcn.00451320
add esp, 4
add edi, 0xc
sub ebx, 1
jne 0x44aff8
lea edi, [esi + 0x61a0]
mov ebx, 0x400
push edi
call fcn.00451320
add esp, 4
add edi, 0xc
sub ebx, 1
jne 0x44b014
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0044ced0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x44b2fd
mov edi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
push str.LOCALDOMAIN
call edi
add esp, 4
test eax, eax
je 0x44b08b
cmp dword [esi + 0x28], 0xffffffff
jne 0x44b08b
lea ecx, [ebp - 0xc]
push ecx
push 1
push 0x4e2648
push eax
call fcn.00451430
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
test eax, eax
je 0x44b07d
test ecx, ecx
jne 0x44b08b
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xffffffff
push str.RES_OPTIONS
call edi
add esp, 4
test eax, eax
je 0x44b0a7
push eax
push esi
call fcn.0044d490
add esp, 8
test eax, eax
jne 0x44b0b0
push esi
call fcn.0044d1b0
add esp, 4
xor ebx, ebx
cmp dword [esi], 0xffffffff
mov dword [ebp - 0xc], ebx
jne 0x44b0bc
mov dword [esi], ebx
cmp dword [esi + 4], 0xffffffff
jne 0x44b0c9
mov dword [esi + 4], 0x1388
cmp dword [esi + 8], 0xffffffff
jne 0x44b0d6
mov dword [esi + 8], 4
cmp dword [esi + 0xc], 0xffffffff
jne 0x44b0e3
mov dword [esi + 0xc], 1
cmp dword [esi + 0x10], 0xffffffff
jne 0x44b0ec
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], 0xffffffff
mov edi, dword [sym.imp.WSOCK32.dll_htons]
jne 0x44b102
push 0x35
call edi
movzx eax, ax
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], 0xffffffff
jne 0x44b112
push 0x35
call edi
movzx eax, ax
mov dword [esi + 0x18], eax
cmp dword [esi + 0x38], 0xffffffff
jne 0x44b11f
mov dword [esi + 0x38], 0x500
cmp dword [esi + 0x78], 0xffffffff
jne 0x44b165
push 0x58
call dword [0x501134]
add esp, 4
mov dword [esi + 0x74], eax
test eax, eax
je 0x44b24c
push 0x7f000001
mov dword [eax], 2
call dword [sym.imp.WSOCK32.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 0x44b216
mov edi, 0x40
mov dword [esi + 0x28], ebx
push edi
mov dword [ebp - 8], edi
call dword [0x501134]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44b24c
nop
push edi
push ebx
call dword [sym.imp.WSOCK32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x44b1cb
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x44b1cf
mov eax, dword [ebp - 8]
add edi, edi
add eax, eax
push eax
push ebx
mov dword [ebp - 8], eax
call dword [0x501138]
add esp, 8
test eax, eax
je 0x44b24c
mov ebx, eax
jmp 0x44b190
test eax, eax
je 0x44b1d2
mov byte [ebx], 0
push 0x2e
push ebx
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x44b216
push 4
call dword [0x501134]
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
je 0x44b24c
mov edi, eax
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.004513d0
mov dword [edi], eax
add esp, 4
mov eax, dword [esi + 0x24]
cmp dword [eax], 0
je 0x44b24c
mov dword [esi + 0x28], 1
cmp dword [esi + 0x30], 0xffffffff
jne 0x44b22a
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
cmp dword [esi + 0x34], 0
jne 0x44b2d0
push 0x4e7464
call fcn.004513d0
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
jne 0x44b2d0
mov eax, dword [esi + 0x74]
test eax, eax
je 0x44b264
push eax
call dword [0x50113c]
add esp, 4
mov dword [esi + 0x74], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x44b293
mov ecx, dword [eax]
test ecx, ecx
je 0x44b282
push ecx
call dword [0x50113c]
mov eax, dword [esi + 0x24]
add esp, 4
test eax, eax
je 0x44b293
push eax
call dword [0x50113c]
add esp, 4
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x44b2ab
push eax
call dword [0x50113c]
add esp, 4
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x91c0]
mov edi, 0xf
test eax, eax
je 0x44b2d3
push eax
call dword [0x50113c]
add esp, 4
mov dword [esi + 0x91c0], 0
jmp 0x44b2d3
mov edi, dword [ebp - 0xc]
test ebx, ebx
je 0x44b2e1
push ebx
call dword [0x50113c]
add esp, 4
test edi, edi
jne 0x44b2fd
push 0x1f
lea ebx, [esi + 0x7e]
call dword [0x501134]
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x44b36b
lea edi, [eax + 0xf]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x44b30e
push eax
call dword [0x50113c]
add esp, 4
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
je 0x44b322
push eax
push dword [esi + 0x24]
call fcn.00451690
add esp, 8
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x44b333
push eax
call dword [0x50113c]
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x44b344
push eax
call dword [0x50113c]
add esp, 4
mov eax, dword [esi + 0x91c0]
test eax, eax
je 0x44b358
push eax
call dword [0x50113c]
add esp, 4
push esi
call dword [0x50113c]
add esp, 4
mov eax, edi
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
mov byte [ecx], al
inc eax
inc ecx
cmp ax, dx
jl 0x44b390
mov eax, dword [0x509564]
xor edi, edi
test eax, eax
je 0x44b3b0
push 0x1f
push ebx
call eax
test al, al
jne 0x44b3cd
nop dword [eax]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jns 0x44b3c4
dec eax
or eax, 0xffffff00
inc eax
mov byte [edi + ebx], al
inc edi
cmp edi, 0x1f
jl 0x44b3b0
xor al, al
mov word [ebx + 0x100], 0
xor cl, cl
mov dword [ebp - 0xc], 0x100
mov esi, ebx
mov dl, byte [esi]
lea esi, [esi + 1]
movzx edi, al
mov eax, dword [ebp - 8]
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 - 0xc], 1
mov cl, byte [ebp - 1]
mov al, dl
jne 0x44b3e3
push dword [ebp - 8]
call dword [0x50113c]
push ebx
call fcn.004516d0
mov esi, dword [ebp - 0x14]
add esp, 8
mov word [esi + 0x7c], ax
test byte [esi], 2
je 0x44b446
cmp dword [esi + 0x78], 1
jle 0x44b446
mov dword [esi + 0x78], 1
xor ebx, ebx
cmp dword [esi + 0x78], ebx
jle 0x44b4c3
xor eax, eax
mov dword [ebp - 0xc], 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.00451320
mov eax, dword [ebp - 0xc]
inc ebx
add eax, 0x58
mov dword [edi + 0x50], esi
add esp, 4
mov dword [edi + 0x54], 0
mov dword [ebp - 0xc], eax
cmp ebx, dword [esi + 0x78]
jl 0x44b452
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword [eax], esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret