Function at 0x105afa3
Capabilities:
Get hostname
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x624], eax
mov dword [ebx], eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x20c]
push eax
je 0x105b0ad
mov esi, 0x104
mov dword [ebp - 0x620], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x105b029
call fcn.010a4804
mov esi, eax
push esi
push 0x1010b8c
call fcn.0107a7e2
push esi
push 0x492013a
jmp 0x105b2ec
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
mov dword [ebp - 0x620], esi
call sub.Secur32.dll_GetComputerObjectNameW
test al, al
jne 0x105b065
call fcn.010a4804
mov esi, eax
push esi
push 0x1010b8c
call fcn.0107a7e2
push esi
push 0x49c013a
jmp 0x105b2ec
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x634], eax
push 0x185
push 0
call dword [sym.imp.WLDAP32.dll_Ordinal_145]
mov esi, eax
test esi, esi
pop ecx
pop ecx
mov dword [ebp - 0x630], esi
jne 0x105b183
call fcn.010a4804
mov esi, eax
push esi
push 0x1010890
call fcn.0107a7e2
push esi
push 0x4d3013a
jmp 0x105b2ec
push 2
mov dword [ebp - 0x620], 0x104
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x105b0df
call fcn.010a4804
mov esi, eax
push esi
push 0x1010a10
call fcn.0107a7e2
push esi
push 0x4a9013a
jmp 0x105b2ec
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
jne 0x105b0fc
lea eax, [ebp - 0x20c]
jmp 0x105b0fe
inc eax
inc eax
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 2
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x620], 0x104
call sub.Secur32.dll_TranslateNameW
test al, al
jne 0x105b159
call fcn.010a4804
mov esi, eax
push esi
push 0x1010b70
call fcn.0107a7e2
push esi
push 0x4c2013a
lea eax, [ebp - 0x20c]
push eax
call fcn.0107ae7f
jmp 0x105b2f1
test esi, esi
je 0x105b071
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.010a4a18
mov esi, eax
test esi, esi
je 0x105b071
push esi
push 0x4c9013a
jmp 0x105b2ec
push 0x486
push 0
push 0
push esi
call dword [sym.imp.WLDAP32.dll_Ordinal_73]
add esp, 0x10
test eax, eax
je 0x105b1c0
lea ecx, [ebp - 0x628]
push ecx
push eax
push esi
call fcn.01093887
mov esi, eax
push esi
push 0x1010878
call fcn.0107a7e2
push esi
push 0x4db013a
jmp 0x105b2ec
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x61c]
je 0x105b1ec
push dword [ebp - 0x634]
push 0x1010b34
push 0x1010b20
push 0x208
push eax
call fcn.0102d885
add esp, 0x14
jmp 0x105b204
push 0x1010af4
push 0x1010ae8
push 0x208
push eax
call fcn.0102d885
add esp, 0x10
lea eax, [ebp - 0x624]
push eax
push 0
push edi
lea eax, [ebp - 0x61c]
push eax
push 2
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.WLDAP32.dll_Ordinal_208_1]
add esp, 0x1c
test eax, eax
je 0x105b252
lea ecx, [ebp - 0x628]
push ecx
push eax
push esi
call fcn.01093887
mov esi, eax
push esi
push 0x1010820
call fcn.0107a7e2
push esi
push 0x4fa013a
jmp 0x105b2ec
push dword [ebp - 0x624]
push esi
call dword [sym.imp.WLDAP32.dll_Ordinal_36]
test eax, eax
pop ecx
pop ecx
jne 0x105b291
push dword [edi]
push 0x888
call fcn.0107a681
push eax
call fcn.0108880b
push 0x1003d24
call fcn.0108880b
add esp, 0xc
mov esi, 0x80092004
push esi
push 0x502013a
jmp 0x105b2ec
push dword [ebp - 0x624]
push esi
call dword [sym.imp.WLDAP32.dll_Ordinal_26]
test eax, eax
pop ecx
pop ecx
jne 0x105b2be
call fcn.010a4804
mov esi, eax
push esi
push 0x1010ac4
call fcn.0107a7e2
push esi
push 0x50c013a
jmp 0x105b2ec
push dword [edi]
push eax
push esi
call dword [sym.imp.WLDAP32.dll_Ordinal_140]
add esp, 0xc
test eax, eax
mov dword [ebp - 0x62c], eax
jne 0x105b2d9
xor esi, esi
jmp 0x105b2f1
push ebx
push eax
call fcn.0105a513
mov esi, eax
test esi, esi
je 0x105b2f1
push esi
push 0x521013a
call fcn.0107ae44
xor edi, edi
cmp dword [ebp - 0x628], edi
je 0x105b319
push dword [ebp - 0x628]
push 0x1001ba4
call fcn.0108880b
pop ecx
pop ecx
push dword [ebp - 0x628]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x624], edi
je 0x105b32e
push dword [ebp - 0x624]
call dword [sym.imp.WLDAP32.dll_Ordinal_41]
pop ecx
cmp dword [ebp - 0x62c], edi
je 0x105b343
push dword [ebp - 0x62c]
call dword [sym.imp.WLDAP32.dll_Ordinal_224]
pop ecx
cmp dword [ebp - 0x630], edi
je 0x105b358
push dword [ebp - 0x630]
call dword [sym.imp.WLDAP32.dll_Ordinal_13]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 0x10