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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100900f8
push 0x1006ca20
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x10094610]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x270], 0x100824b4
mov dword [ebp - 0x26c], esi
push 0x100
push esi
lea eax, [ebp - 0x260]
push eax
call fcn.10066c10
push 0x200
call fcn.1006555b
mov dword [ebp - 0x264], eax
push 0x100
push esi
push eax
call fcn.10066c10
add esp, 0x1c
mov dword [ebp - 4], esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x278], 0x10
lea ecx, [ebp - 0x278]
push ecx
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x10052a11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x10094610
call fcn.100732f0
add esp, 0xc
xor eax, eax
jmp 0x10052c39
lea ecx, [ebp - 0x40]
push ecx
push 0x10
lea edx, [ebp - 0x60]
push edx
call fcn.10066f05
push 1
push 0x1008a7e0
lea eax, [ebp - 0x40]
push eax
call fcn.10069468
add esp, 0x18
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x274], esi
xor edi, edi
mov dword [ebp - 0x270], edi
lea ecx, [ebp - 0x27c]
push ecx
lea edx, [ebp - 0x26c]
push edx
push esi
lea eax, [ebp - 0x268]
push eax
push esi
lea ecx, [ebp - 0x40]
push ecx
push esi
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call ebx
test eax, eax
jne 0x10052ac7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10052ac7
cmp eax, 0x534
jne 0x10052b61
lea eax, [ebp - 0x40]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10052a91
sub eax, edx
sar eax, 1
xor edx, edx
mov word [ebp + eax*2 - 0x42], dx
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x26c]
push ecx
push edx
lea edx, [ebp - 0x268]
push edx
push 0
lea eax, [ebp - 0x40]
push eax
push 0
call ebx
mov edx, dword [ebp - 0x268]
push edx
call fcn.100665f8
mov esi, eax
mov dword [ebp - 0x274], esi
mov eax, dword [ebp - 0x26c]
lea ecx, [eax + eax + 1]
push ecx
call fcn.100665f8
add esp, 8
mov edi, eax
mov dword [ebp - 0x270], edi
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x26c]
push eax
push edi
lea ecx, [ebp - 0x268]
push ecx
push esi
lea edx, [ebp - 0x40]
push edx
push 0
call ebx
test eax, eax
je 0x100529f1
mov dword [ebp - 0x278], 0x100
lea ecx, [ebp - 0x278]
push ecx
push esi
lea ebx, [ebp - 0x260]
call fcn.10052810
add esp, 8
test eax, eax
jne 0x10052ba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x10094610
call fcn.100732f0
add esp, 0xc
xor eax, eax
jmp 0x10052c39
cmp eax, 0x6fd
jne 0x10052b84
call fcn.100525c0
mov dword [ebp - 0x264], eax
mov dword [ebp - 4], 0
call fcn.10052bda
jmp 0x10052c2c
call fcn.100525c0
mov esi, eax
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x10094610
call fcn.100732f0
add esp, 0xc
mov eax, esi
jmp 0x10052c39
lea eax, [ebp - 0x260]
push eax
push 0x100
mov ecx, dword [ebp - 0x264]
push ecx
call fcn.10066f05
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.10052bda
jmp 0x10052c2c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret