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

Disassembly:
push ebp
lea ebp, [esp - 0x248]
sub esp, 0x248
push 0xfffffffffffffffe
push 0x1004fb60
push 0x10034e11
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1005a018]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x244], 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 - 0x2c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], 0x1003c51c
mov dword [ebp - 0x24], esi
push 0x100
push esi
lea eax, [ebp]
push eax
call sub.MSVCR90.dll_memset
push 0x200
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov dword [ebp - 0x1c], eax
push 0x100
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0x1c
mov dword [ebp - 4], esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1002edc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1005a018
call sub.MSVCR90.dll__local_unwind4
add esp, 0xc
xor eax, eax
jmp 0x1002efab
lea ecx, [ebp + 0x220]
push ecx
push 0x10
lea edx, [ebp + 0x200]
push edx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
push 1
push 0x1004c0d8
lea eax, [ebp + 0x220]
push eax
call dword [sym.imp.MSVCR90.dll_wcsncat]
add esp, 0x18
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
xor edi, edi
mov dword [ebp - 0x28], edi
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x24]
push edx
push esi
lea eax, [ebp - 0x20]
push eax
push esi
lea ecx, [ebp + 0x220]
push ecx
push esi
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call ebx
test eax, eax
jne 0x1002ee76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1002ee76
cmp eax, 0x534
jne 0x1002eef5
lea eax, [ebp + 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002ee43
sub eax, edx
sar eax, 1
xor edx, edx
mov word [ebp + eax*2 + 0x21e], dx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
push ecx
push edx
lea edx, [ebp - 0x20]
push edx
push 0
lea eax, [ebp + 0x220]
push eax
push 0
call ebx
mov edx, dword [ebp - 0x20]
push edx
mov edi, dword [sym.imp.MSVCR90.dll_malloc]
call edi
mov esi, eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x24]
lea ecx, [eax + eax + 1]
push ecx
call edi
add esp, 8
mov edi, eax
mov dword [ebp - 0x28], edi
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x24]
push eax
push edi
lea ecx, [ebp - 0x20]
push ecx
push esi
lea edx, [ebp + 0x220]
push edx
push 0
call ebx
test eax, eax
je 0x1002eda7
mov dword [ebp - 0x30], 0x100
lea ecx, [ebp - 0x30]
push ecx
push esi
lea ebx, [ebp]
call fcn.1002ebe0
add esp, 8
test eax, eax
jne 0x1002ef2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x1005a018
call sub.MSVCR90.dll__local_unwind4
add esp, 0xc
xor eax, eax
jmp 0x1002efab
cmp eax, 0x6fd
jne 0x1002ef15
call fcn.1002ea50
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
call fcn.1002ef59
jmp 0x1002efa1
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x1005a018
call sub.MSVCR90.dll__local_unwind4
add esp, 0xc
xor eax, eax
jmp 0x1002efab
lea eax, [ebp]
push eax
push 0x100
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.1002ef59
jmp 0x1002efa1
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x244]
xor ecx, ebp
call fcn.100344d1
add ebp, 0x248
mov esp, ebp
pop ebp
ret