Function at 0x409d1e
Capabilities:
Check os version
Get hostname
Get session user name

Disassembly:
push ebp
sub esp, 0x1b0
lea ebp, [esp - 4]
mov eax, dword [0x4234b0]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push 0x10
mov eax, 0x41a3bd
call fcn.0040d60c
mov esi, ecx
mov edi, 0x94
xor ebx, ebx
push edi
lea eax, [ebp]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040deb0
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp + 0x10], 2
sete al
cmp dword [ebp + 4], 5
sbb ecx, ecx
inc ecx
mov dword [esi + 4], ecx
cmp eax, ebx
mov dword [esi], eax
je 0x409d8f
push str.AdminScriptEditor
lea ecx, [esi + 0xc]
call fcn.00407be8
push 0x11
lea eax, [ebp + 0x19c]
push ebx
push eax
call fcn.0040deb0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x19c]
push eax
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp + 0x19c]
lea ecx, [esi + 0x20]
push eax
call fcn.004013e6
cmp dword [esi + 4], ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
push ebx
je 0x409e17
push 2
call sub.Secur32.dll_GetUserNameExA
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x409e61
inc eax
push eax
call fcn.0040e3f5
mov edi, eax
mov eax, dword [ebp - 0x14]
inc eax
push eax
push ebx
push edi
call fcn.0040deb0
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push edi
push 2
call sub.Secur32.dll_GetUserNameExA
lea ecx, [esi + 0x1c]
push edi
call fcn.004013e6
cmp edi, ebx
je 0x409e61
push edi
jmp 0x409e5b
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call edi
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x409e61
inc eax
push eax
call fcn.0040e3f5
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
push ebx
push eax
mov dword [ebp - 0x10], eax
call fcn.0040deb0
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
lea ecx, [esi + 0x1c]
call fcn.004013e6
cmp dword [ebp - 0x10], ebx
je 0x409e61
push dword [ebp - 0x10]
call fcn.0040d037
pop ecx
push 0x105
lea eax, [ebp + 0x94]
push ebx
push eax
call fcn.0040deb0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x94]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, ebx
jbe 0x409f2b
lea eax, [ebp + 0x94]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040144f
lea edi, [esi + 0x10]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00403108
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401189
push 0x5c
mov ecx, edi
call fcn.00408722
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x409f2b
inc eax
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00408ee9
lea ecx, [esi + 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.00403108
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401189
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp - 0x14]
mov ecx, edi
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push eax
call fcn.00408e6c
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 3
call fcn.00403108
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401189
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401a72
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004092b2
push ebx
push str._DEBUG.EXE
lea ecx, [ebp - 0x10]
call fcn.004088d0
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
lea eax, [ebp + 0x1bc]
push eax
mov dword [esi + 8], ecx
lea ecx, [esi + 0x24]
call fcn.00403108
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp + 0x1bc]
add ecx, 0xfffffff0
call fcn.00401189
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1b0]
xor ecx, ebp
call fcn.0040d5fd
add ebp, 0x1b4
leave
ret 4