Function at 0x40a15c
Capabilities:
Get common file path
Get hostname
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7b8
mov eax, 0x48eac8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004696b8
lea edx, [ebp - 0x94]
push edx
call sub.KERNEL32.DLL_GetSystemInfo
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x182
jne 0x40a1bb
mov word [ebp - 0x5c], 8
mov edx, 0x48bdce
lea eax, [ebp - 8]
call fcn.00474b48
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, ebx
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00474d44
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x1e6
jne 0x40a1f5
mov word [ebp - 0x5c], 0x14
mov edx, 0x48bde5
lea eax, [ebp - 0xc]
call fcn.00474b48
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, ebx
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00474d44
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x24a
jne 0x40a22f
mov word [ebp - 0x5c], 0x20
mov edx, 0x48bdfc
lea eax, [ebp - 0x10]
call fcn.00474b48
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, ebx
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00474d44
lea edi, [ebp - 0x228]
mov esi, 0x48a7b0
mov ecx, pe_nt_image_headers32
lea eax, [ebp - 0x128]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x128], 0x94
push eax
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x40a26d
mov edx, 0x48be15
lea eax, [ebp - 0x228]
call fcn.0045fd60
jmp 0x40a2c5
mov edx, dword [ebp - 0x118]
sub edx, 1
jb 0x40a27f
je 0x40a291
dec edx
je 0x40a2a3
jmp 0x40a2b5
mov edx, 0x48be1a
lea eax, [ebp - 0x228]
call fcn.0045fd60
jmp 0x40a2c5
mov edx, 0x48be30
lea eax, [ebp - 0x228]
call fcn.0045fd60
jmp 0x40a2c5
mov edx, 0x48be3c
lea eax, [ebp - 0x228]
call fcn.0045fd60
jmp 0x40a2c5
mov edx, 0x48be47
lea eax, [ebp - 0x228]
call fcn.0045fd60
mov word [ebp - 0x5c], 0x2c
lea edx, [ebp - 0x228]
lea eax, [ebp - 0x14]
call fcn.00474b48
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, ebx
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00474d44
mov dword [ebp - 0x70], 0xff
push 0xff
lea ecx, [ebp - 0x428]
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0xff
lea eax, [ebp - 0x328]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea edx, [ebp - 0x528]
push edx
push 0xff
call sub.KERNEL32.DLL_GetTempPathA
lea ecx, [ebp - 0x70]
push ecx
lea eax, [ebp - 0x628]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
jne 0x40a353
mov edx, 0x48be50
lea eax, [ebp - 0x628]
call fcn.0045fc94
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x728]
push ecx
call sub.ADVAPI32.DLL_GetUserNameA
test eax, eax
jne 0x40a377
mov edx, 0x48be55
lea eax, [ebp - 0x728]
call fcn.0045fc94
lea ecx, [ebp - 0x428]
lea eax, [ebp - 0x828]
push ecx
push 0x48be5a
push eax
call fcn.0046b950
mov word [ebp - 0x5c], 0x38
add esp, 0xc
lea edx, [ebp - 0x828]
lea eax, [ebp - 0x18]
call fcn.00474b48
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, ebx
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00474d44
lea ecx, [ebp - 0x328]
lea eax, [ebp - 0x828]
push ecx
push 0x48be6f
push eax
call fcn.0046b950
mov word [ebp - 0x5c], 0x44
add esp, 0xc
lea edx, [ebp - 0x828]
lea eax, [ebp - 0x1c]
call fcn.00474b48
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, ebx
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00474d44
lea ecx, [ebp - 0x528]
lea eax, [ebp - 0x828]
push ecx
push 0x48be84
push eax
call fcn.0046b950
mov word [ebp - 0x5c], 0x50
add esp, 0xc
lea edx, [ebp - 0x828]
lea eax, [ebp - 0x20]
call fcn.00474b48
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, ebx
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00474d44
lea ecx, [ebp - 0x628]
lea eax, [ebp - 0x828]
push ecx
push 0x48be98
push eax
call fcn.0046b950
mov word [ebp - 0x5c], 0x5c
add esp, 0xc
lea edx, [ebp - 0x828]
lea eax, [ebp - 0x24]
call fcn.00474b48
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, ebx
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00474d44
push ebx
call fcn.00409f48
pop ecx
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x728]
push ecx
push 0x48beac
push eax
call fcn.0046b950
mov word [ebp - 0x5c], 0x68
add esp, 0xc
lea edx, [ebp - 0x828]
lea eax, [ebp - 0x28]
call fcn.00474b48
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, ebx
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00474d44
mov dword [ebp - 0x848], 0x20
lea ecx, [ebp - 0x848]
push ecx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [ebp - 0x840]
mov ecx, 0xf4240
xor edx, edx
div ecx
mov ecx, eax
mov eax, dword [ebp - 0x82c]
mov esi, 0xf4240
xor edx, edx
div esi
mov esi, eax
push ecx
push 0x48bec0
lea eax, [ebp - 0x828]
push eax
call fcn.0046b950
mov word [ebp - 0x5c], 0x74
add esp, 0xc
lea edx, [ebp - 0x828]
lea eax, [ebp - 0x2c]
call fcn.00474b48
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, ebx
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00474d44
push esi
push 0x48bed6
lea ecx, [ebp - 0x828]
push ecx
call fcn.0046b950
mov word [ebp - 0x5c], 0x80
add esp, 0xc
lea edx, [ebp - 0x828]
lea eax, [ebp - 0x30]
call fcn.00474b48
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, ebx
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00474d44
mov ecx, dword [0x49a448]
mov eax, dword [ecx]
call fcn.0043f2a4
mov esi, eax
mov eax, dword [0x49a448]
mov eax, dword [eax]
call fcn.0043f298
mov word [ebp - 0x5c], 0x8c
mov edi, eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, esi
inc dword [ebp - 0x50]
lea edx, [ebp - 0x34]
call fcn.0045f6c4
lea edx, [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x38]
inc dword [ebp - 0x50]
mov eax, 0x48beec
call fcn.00475018
lea edx, [ebp - 0x38]
mov eax, ebx
mov edx, dword [edx]
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x50]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00474d44
mov word [ebp - 0x5c], 0x98
xor ecx, ecx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], ecx
mov eax, edi
inc dword [ebp - 0x50]
call fcn.0045f6c4
lea edx, [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x40]
inc dword [ebp - 0x50]
mov eax, 0x48befe
call fcn.00475018
lea edx, [ebp - 0x40]
mov eax, ebx
mov edx, dword [edx]
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x50]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00474d44
push ebx
call fcn.00409b04
pop ecx
mov edx, 0x48bf10
mov word [ebp - 0x5c], 0xa4
lea eax, [ebp - 0x44]
call fcn.00474b48
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, ebx
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00474d44
mov word [ebp - 0x5c], 0xbc
mov edx, 0x48bf24
lea eax, [ebp - 0x48]
call fcn.00474b48
inc dword [ebp - 0x50]
mov edx, eax
xor eax, eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
mov eax, 0x48bf12
inc dword [ebp - 0x50]
call fcn.00475018
dec dword [ebp - 0x50]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00474d44
mov word [ebp - 0x5c], 0xb0
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004578d8
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00474d44
mov ecx, dword [ebp - 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret