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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x3002226c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x30004550
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x340]
push eax
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x128]
xor ebx, ebx
mov esi, 0x101
push eax
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x340], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x30031db1
push esi
lea eax, [ebp - 0x128]
push eax
push 0x30004174
call fcn.3005b376
push 0x10
pop esi
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x340], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x30031dea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x340], eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0x30004184
call fcn.3005b376
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x30003f08
push 0x300bcd30
push 0x30003b94
lea eax, [ebp - 0x330]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
mov eax, dword [0x300d1788]
add esp, 0x14
cmp dword [eax], ebx
je 0x30031e29
push 0x15
pop esi
jmp 0x30031e38
push dword [0x300bcf38]
call fcn.30059e93
mov esi, eax
add esi, esi
lea eax, [ebp - 0x14]
push eax
call fcn.30059e02
mov edi, eax
lea eax, [ebp - 0x128]
push eax
call fcn.30059e02
add edi, esi
lea esi, [eax + edi + 0x1a]
push esi
lea eax, [ebp - 0x334]
push eax
call fcn.30043358
test eax, eax
je 0x30032071
push esi
push dword [ebp - 0x334]
lea eax, [ebp - 0x354]
push eax
call fcn.3003e199
push dword [ebp - 0x334]
call fcn.30059e02
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
sub ecx, eax
push 0x30004548
push ecx
mov ecx, dword [ebp - 0x334]
add eax, ecx
push eax
call edi
add esp, 0x14
push dword [ebp - 0x334]
call fcn.30059e02
mov ecx, dword [0x300d1788]
mov edx, dword [ecx]
sub esi, eax
cmp edx, ebx
je 0x30031ee4
push dword [ecx + 4]
mov ecx, dword [ebp - 0x334]
push edx
push 0x30004540
add eax, ecx
push esi
push eax
call edi
add esp, 0x14
jmp 0x30031efe
push dword [0x300bcf38]
mov ecx, dword [ebp - 0x334]
push 0x30004538
add eax, ecx
push esi
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x330]
push eax
push dword [ebp - 0x334]
call fcn.3003dace
push dword [ebp - 0x334]
call fcn.300432ac
mov eax, dword [0x300bcf44]
cmp eax, ebx
mov dword [ebp - 0x334], ebx
je 0x30031f40
push eax
call fcn.3003dc93
cmp word [eax], 0x5c
mov dword [ebp - 0x33c], eax
jne 0x30031f49
inc eax
inc eax
jmp 0x30031f43
lea eax, [ebp - 0x24]
mov dword [ebp - 0x33c], eax
push dword [0x300bcf3c]
call fcn.30059e93
push 0x30003f34
mov esi, eax
call fcn.30059e93
lea ebx, [esi + eax + 2]
cmp ebx, 0x104
jle 0x30031f88
call fcn.3003daba
test eax, eax
je 0x30032071
push 0x300044f0
call fcn.3003db54
jmp 0x30032071
push dword [ebp - 0x33c]
call fcn.30059e93
lea esi, [eax + eax + 0x1a]
lea eax, [ebp - 0x14]
push eax
call fcn.30059e02
add eax, esi
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x128]
push eax
call fcn.30059e02
mov esi, eax
add esi, dword [ebp - 0x344]
lea eax, [ebx + ebx]
push eax
lea eax, [ebp - 0x338]
push eax
call fcn.30043358
test eax, eax
je 0x30032071
push 0x30003f34
push dword [0x300bcf3c]
push 0x30003b94
push ebx
push dword [ebp - 0x338]
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x14
push esi
lea eax, [ebp - 0x334]
push eax
call fcn.30043358
test eax, eax
je 0x30032066
push esi
push dword [ebp - 0x334]
lea eax, [ebp - 0x354]
push eax
call fcn.3003e199
push dword [ebp - 0x334]
call fcn.30059e02
push dword [ebp - 0x33c]
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x334]
sub esi, eax
push 0x300044e4
add eax, ecx
push esi
push eax
call edi
add esp, 0x18
push dword [ebp - 0x338]
push dword [ebp - 0x334]
call fcn.3003dace
push dword [ebp - 0x334]
call fcn.300432ac
push dword [ebp - 0x338]
call fcn.300432ac
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.300696c7
leave
ret