Function at 0x50bf40
Capabilities:
Get hostname
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5687e7
mov eax, dword fs:[0]
push eax
mov eax, 0x177c
call fcn.00532f10
mov eax, dword [0x5d21e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1784]
push eax
mov dword [ebp - 0x1780], esi
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
mov dword [ebp - 0x1770], esi
push eax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1784], 0x20
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x50c16e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea ecx, [ebp - 0x14e0]
mov dword [ebp - 0x1764], eax
call fcn.00502d30
mov edi, eax
push ecx
mov esi, esp
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push str.getComputerNameFailed
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505810
sub esp, 0x10
mov edi, eax
mov ecx, esp
mov dword [ebp - 0x1760], esp
push dword [ebp - 0x1764]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_unsigned_int_]
push ecx
mov esi, esp
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push str.errorCode
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00504e80
mov edi, eax
lea eax, [ebp - 0x1768]
push eax
call fcn.0050b770
sub esp, 0xc
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x1760], esp
push eax
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_class_QString_const__]
push ecx
mov esi, esp
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push str.error
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00504e80
push 4
mov ecx, eax
call fcn.00504e60
push ecx
mov esi, esp
mov edi, eax
push 0xffffffffffffffff
push str.SystemInfoWin
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505760
push 0x243
mov ecx, eax
call fcn.00504e70
sub esp, 0x68
mov edi, eax
mov dword [ebp - 0x176c], esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x1760], esp
push str.Amazon::SystemInfo::getMachineSID
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
push ecx
mov esi, esp
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push 0x56e5f8
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00504e80
mov ecx, dword [ebp - 0x176c]
push eax
call fcn.00425d30
lea ecx, [ebp - 0x15e8]
call fcn.00425bf0
lea ecx, [ebp - 0x15e8]
call fcn.005066c0
lea ecx, [ebp - 0x1768]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x14e0]
mov dword [ebp - 4], 0xffffffff
call fcn.00502f90
mov eax, dword [ebp - 0x1764]
mov esi, dword [ebp - 0x1770]
lea edx, [eax + str.Error_retrieving_computer_name:]
mov ecx, edx
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50c157
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00423620
jmp 0x50c863
push 0x800
lea eax, [ebp - 0xc30]
mov dword [ebp - 0x1774], 0
push 0
push eax
call fcn.00534a40
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x1788]
add esp, 0xc
mov dword [ebp - 0x1778], 0x400
push eax
lea eax, [ebp - 0x1778]
push eax
lea eax, [ebp - 0xc30]
push eax
lea eax, [ebp - 0x1774]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push 0
call edi
mov ecx, dword [ebp - 0x1774]
test ecx, ecx
jne 0x50c397
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea ecx, [ebp - 0x14e0]
mov dword [ebp - 0x1764], eax
call fcn.00502d30
mov edi, eax
push ecx
mov esi, esp
mov dword [ebp - 4], 5
push 0xffffffffffffffff
push str.getAccountNameSizeFailed
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505810
sub esp, 0x10
mov edi, eax
mov ecx, esp
mov dword [ebp - 0x175c], esp
push dword [ebp - 0x1764]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_unsigned_int_]
push ecx
mov esi, esp
mov byte [ebp - 4], 6
push 0xffffffffffffffff
push str.errorCode
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00504e80
mov edi, eax
lea eax, [ebp - 0x176c]
push eax
call fcn.0050b770
sub esp, 0xc
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x175c], esp
push eax
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_class_QString_const__]
push ecx
mov esi, esp
mov byte [ebp - 4], 8
push 0xffffffffffffffff
push str.error
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00504e80
push 4
mov ecx, eax
call fcn.00504e60
push ecx
mov esi, esp
mov edi, eax
push 0xffffffffffffffff
push str.SystemInfoWin
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505760
push 0x252
mov ecx, eax
call fcn.00504e70
sub esp, 0x68
mov edi, eax
mov dword [ebp - 0x1768], esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x175c], esp
push str.Amazon::SystemInfo::getMachineSID
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
push ecx
mov esi, esp
mov byte [ebp - 4], 9
push 0xffffffffffffffff
push 0x56e5f8
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00504e80
mov ecx, dword [ebp - 0x1768]
push eax
call fcn.00425d30
lea ecx, [ebp - 0x15e8]
call fcn.00425bf0
lea ecx, [ebp - 0x15e8]
call fcn.005066c0
lea ecx, [ebp - 0x176c]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x14e0]
mov dword [ebp - 4], 0xffffffff
call fcn.00502f90
mov eax, dword [ebp - 0x1764]
mov esi, dword [ebp - 0x1770]
lea edx, [eax + str.Error_retrieving_SID_size:]
mov ecx, edx
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50c380
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00423620
jmp 0x50c863
mov eax, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x1448], 0
test eax, eax
je 0x50c3c0
mov dword [ebp - 0x1448], eax
mov eax, 0x5a0438
or eax, 1
mov dword [ebp - 0x1450], eax
jmp 0x50c3ca
mov dword [ebp - 0x1450], 0
lea eax, [ebp - 0x1450]
mov dword [ebp - 4], 0xa
push eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
lea ecx, [ebp - 0x1478]
call fcn.005086e0
mov eax, dword [ebp - 0x1450]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x50c421
test al, 1
jne 0x50c417
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x50c417
lea ecx, [ebp - 0x1448]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov dword [ebp - 0x1450], 0
lea eax, [ebp - 0x1788]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x1778]
push eax
lea eax, [ebp - 0xc30]
push eax
lea eax, [ebp - 0x1774]
push eax
push dword [ebp - 0x1478]
lea eax, [ebp - 0x30]
push eax
push 0
call edi
test eax, eax
jne 0x50c5fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea ecx, [ebp - 0x14e0]
mov dword [ebp - 0x1764], eax
call fcn.00502d30
mov edi, eax
push ecx
mov esi, esp
mov byte [ebp - 4], 0xe
push 0xffffffffffffffff
push str.getAccountNameFailed
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505810
sub esp, 0x10
mov edi, eax
mov ecx, esp
mov dword [ebp - 0x175c], esp
push dword [ebp - 0x1764]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_unsigned_int_]
push ecx
mov esi, esp
mov byte [ebp - 4], 0xf
push 0xffffffffffffffff
push str.errorCode
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 0xe
call fcn.00504e80
mov edi, eax
lea eax, [ebp - 0x176c]
push eax
call fcn.0050b770
sub esp, 0xc
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0x175c], esp
push eax
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_class_QString_const__]
push ecx
mov esi, esp
mov byte [ebp - 4], 0x11
push 0xffffffffffffffff
push str.error
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 0x10
call fcn.00504e80
push 4
mov ecx, eax
call fcn.00504e60
push ecx
mov esi, esp
mov edi, eax
push 0xffffffffffffffff
push str.SystemInfoWin
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505760
push 0x25f
mov ecx, eax
call fcn.00504e70
sub esp, 0x68
mov edi, eax
mov dword [ebp - 0x1768], esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x175c], esp
push str.Amazon::SystemInfo::getMachineSID
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
push ecx
mov esi, esp
mov byte [ebp - 4], 0x12
push 0xffffffffffffffff
push 0x56e5f8
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 0x10
call fcn.00504e80
mov ecx, dword [ebp - 0x1768]
push eax
call fcn.00425d30
lea ecx, [ebp - 0x15e8]
call fcn.00425bf0
lea ecx, [ebp - 0x15e8]
call fcn.005066c0
lea ecx, [ebp - 0x176c]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x14e0]
mov byte [ebp - 4], 0xc
call fcn.00502f90
mov ecx, dword [ebp - 0x1764]
lea eax, [ecx + str.Error_retrieving_SID:]
mov ecx, dword [ebp - 0x1770]
push eax
call fcn.004362a0
lea ecx, [ebp - 0x1478]
call fcn.00508790
mov eax, dword [ebp - 0x1770]
jmp 0x50c865
push 0x800
lea eax, [ebp - 0x1430]
push 0
push eax
call fcn.00534a40
add esp, 0xc
lea eax, [ebp - 0x1430]
mov dword [ebp - 0x177c], eax
lea eax, [ebp - 0x177c]
push eax
push dword [ebp - 0x1478]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x50c7d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea ecx, [ebp - 0x1650]
mov dword [ebp - 0x1764], eax
call fcn.00502d30
mov edi, eax
push ecx
mov esi, esp
mov byte [ebp - 4], 0x13
push 0xffffffffffffffff
push str.convertAccountNameSidToStringFailed
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505810
sub esp, 0x10
mov edi, eax
mov ecx, esp
mov dword [ebp - 0x175c], esp
push dword [ebp - 0x1764]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_unsigned_int_]
push ecx
mov esi, esp
mov byte [ebp - 4], 0x14
push 0xffffffffffffffff
push str.errorCode
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 0x13
call fcn.00504e80
mov edi, eax
lea eax, [ebp - 0x1760]
push eax
call fcn.0050b770
sub esp, 0xc
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ebp - 0x175c], esp
push eax
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_class_QString_const__]
push ecx
mov esi, esp
mov byte [ebp - 4], 0x16
push 0xffffffffffffffff
push str.error
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 0x15
call fcn.00504e80
push 4
mov ecx, eax
call fcn.00504e60
push ecx
mov esi, esp
mov edi, eax
push 0xffffffffffffffff
push str.SystemInfoWin
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505760
push 0x26d
mov ecx, eax
call fcn.00504e70
sub esp, 0x68
mov edi, eax
mov dword [ebp - 0x1768], esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x175c], esp
push str.Amazon::SystemInfo::getMachineSID
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
push ecx
mov esi, esp
mov byte [ebp - 4], 0x17
push 0xffffffffffffffff
push 0x56e5f8
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 0x15
call fcn.00504e80
mov ecx, dword [ebp - 0x1768]
push eax
call fcn.00425d30
lea ecx, [ebp - 0x1758]
call fcn.00425bf0
lea ecx, [ebp - 0x1758]
call fcn.005066c0
lea ecx, [ebp - 0x1760]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x1650]
mov byte [ebp - 4], 0xc
call fcn.00502f90
mov ecx, dword [ebp - 0x1764]
lea eax, [ecx + str.Error_converting_SID_to_string:]
mov ecx, dword [ebp - 0x1770]
push eax
call fcn.004362a0
lea ecx, [ebp - 0x1478]
call fcn.00508790
mov eax, dword [ebp - 0x1770]
jmp 0x50c865
push 0x400
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.00534a40
push 0x400
push dword [ebp - 0x177c]
lea eax, [ebp - 0x430]
mov dword [ebp - 0x1780], 0
push 0x400
push eax
lea eax, [ebp - 0x1780]
push eax
call fcn.005469d7
lea ecx, [ebp - 0x430]
mov dword [esi], 0
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0xf
add esp, 0x20
mov byte [esi], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50c840
sub ecx, edx
lea eax, [ebp - 0x430]
push ecx
push eax
mov ecx, esi
call fcn.00423620
lea ecx, [ebp - 0x1478]
call fcn.00508790
mov eax, esi
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.005329db
mov esp, ebp
pop ebp
ret