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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x300222cc]
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 0x30031e2c
push esi
lea eax, [ebp - 0x128]
push eax
push 0x30004174
call fcn.3005b426
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 0x30031e65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x340], eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0x30004184
call fcn.3005b426
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 0x30031ea4
push 0x15
pop esi
jmp 0x30031eb3
push dword [0x300bcf38]
call fcn.30059f43
mov esi, eax
add esi, esi
lea eax, [ebp - 0x14]
push eax
call fcn.30059eb2
mov edi, eax
lea eax, [ebp - 0x128]
push eax
call fcn.30059eb2
add edi, esi
lea esi, [eax + edi + 0x1a]
push esi
lea eax, [ebp - 0x334]
push eax
call fcn.30043398
test eax, eax
je 0x300320ec
push esi
push dword [ebp - 0x334]
lea eax, [ebp - 0x354]
push eax
call fcn.3003e218
push dword [ebp - 0x334]
call fcn.30059eb2
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.30059eb2
mov ecx, dword [0x300d1788]
mov edx, dword [ecx]
sub esi, eax
cmp edx, ebx
je 0x30031f5f
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 0x30031f79
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.3003db4b
push dword [ebp - 0x334]
call fcn.300432ec
mov eax, dword [0x300bcf44]
cmp eax, ebx
mov dword [ebp - 0x334], ebx
je 0x30031fbb
push eax
call fcn.3003dd10
cmp word [eax], 0x5c
mov dword [ebp - 0x33c], eax
jne 0x30031fc4
inc eax
inc eax
jmp 0x30031fbe
lea eax, [ebp - 0x24]
mov dword [ebp - 0x33c], eax
push dword [0x300bcf3c]
call fcn.30059f43
push 0x30003f34
mov esi, eax
call fcn.30059f43
lea ebx, [esi + eax + 2]
cmp ebx, 0x104
jle 0x30032003
call fcn.3003db37
test eax, eax
je 0x300320ec
push 0x300044f0
call fcn.3003dbd1
jmp 0x300320ec
push dword [ebp - 0x33c]
call fcn.30059f43
lea esi, [eax + eax + 0x1a]
lea eax, [ebp - 0x14]
push eax
call fcn.30059eb2
add eax, esi
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x128]
push eax
call fcn.30059eb2
mov esi, eax
add esi, dword [ebp - 0x344]
lea eax, [ebx + ebx]
push eax
lea eax, [ebp - 0x338]
push eax
call fcn.30043398
test eax, eax
je 0x300320ec
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.30043398
test eax, eax
je 0x300320e1
push esi
push dword [ebp - 0x334]
lea eax, [ebp - 0x354]
push eax
call fcn.3003e218
push dword [ebp - 0x334]
call fcn.30059eb2
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.3003db4b
push dword [ebp - 0x334]
call fcn.300432ec
push dword [ebp - 0x338]
call fcn.300432ec
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30069776
leave
ret