Function at 0x435fe0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f8e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
mov dword [ebp - 0x18], ebx
call sym.GuardianEdgeRemovableStorageAccess.exe_void___cdecl_GERSLOG::SetLogFile_enum_GERSLOG::_PROJECT_CONFIG_
push 0x48c768
push 3
push 0x3e9
push str.UserNameToSID
push str..RSUtil.cpp
call sym.GuardianEdgeRemovableStorageAccess.exe_void___cdecl_GERSLOG::LogMsg_unsigned_short_int_const___unsigned_short_int_const___int__enum_GERSLOG::_TRACE_LEVEL__unsigned_short_int_const__
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push ebx
lea edx, [ebp - 0x1c]
push edx
push ebx
push eax
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp eax, ebx
jne 0x436156
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jbe 0x436156
cmp dword [ebp - 0x14], ebx
jbe 0x436156
push eax
call fcn.0044a731
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + ecx]
push edx
mov esi, eax
call fcn.0044a731
add esp, 8
cmp esi, ebx
mov edi, eax
je 0x436121
cmp edi, ebx
je 0x436128
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push edi
lea edx, [ebp - 0x1c]
push edx
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp eax, ebx
jne 0x4360e5
push str.LookupAccountName_failed__Unknown_username
push 2
push 0x416
push str.UserNameToSID
push str..RSUtil.cpp
mov ebx, 0x80004005
call sym.GuardianEdgeRemovableStorageAccess.exe_void___cdecl_GERSLOG::LogMsg_unsigned_short_int_const___unsigned_short_int_const___int__enum_GERSLOG::_TRACE_LEVEL__unsigned_short_int_const__
add esp, 0x14
push edi
call fcn.00449dbf
push esi
call fcn.00449dbf
add esp, 8
jmp 0x436192
lea ecx, [ebp - 0x20]
push ecx
push esi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
cmp eax, ebx
je 0x43610d
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
push edx
call fcn.00402830
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [ebp - 0x18]
push edi
call fcn.00449dbf
push esi
call fcn.00449dbf
add esp, 8
jmp 0x436192
cmp edi, ebx
je 0x436131
push edi
jmp 0x436129
push esi
call fcn.00449dbf
add esp, 4
push str.not_enough_memory
push 2
push 0x431
push str.UserNameToSID
push str..RSUtil.cpp
mov ebx, 0x80004005
call sym.GuardianEdgeRemovableStorageAccess.exe_void___cdecl_GERSLOG::LogMsg_unsigned_short_int_const___unsigned_short_int_const___int__enum_GERSLOG::_TRACE_LEVEL__unsigned_short_int_const__
add esp, 0x14
jmp 0x436192
push str.Unknown_username
push 2
push 0x438
jmp 0x43613d
push 0x48c718
push 3
push 0x442
push str.UserNameToSID
push str..RSUtil.cpp
mov dword [ebp - 4], 0xffffffff
call sym.GuardianEdgeRemovableStorageAccess.exe_void___cdecl_GERSLOG::LogMsg_unsigned_short_int_const___unsigned_short_int_const___int__enum_GERSLOG::_TRACE_LEVEL__unsigned_short_int_const__
mov ecx, dword [ebp - 0xc]
add esp, 0x14
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret