Function at 0x489e10
Capabilities:
Get disk size
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5207a4
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x56e754]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0xa4], esi
mov edx, esi
mov dword [ebp - 0x11c], esi
lea ecx, [ebp - 0x7c]
call fcn.0043a5b0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x489e68
mov eax, dword [eax]
mov edx, 0x574a40
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0xd8]
call fcn.004397a0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
push ecx
mov ecx, dword [eax]
push str.Getting_file_information_for__s
push 2
call fcn.0041eb40
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0xd4]
test edi, edi
je 0x489ec7
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x489ec7
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x489ec7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
call fcn.0041b400
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x489ee0
mov eax, dword [esi]
mov byte [ebp - 0xa8], 0
lea edx, [ebp - 0xb0]
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xb0], eax
call fcn.0041d7e0
add esp, 4
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 3
call fcn.00423910
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.0041b400
test bl, bl
jne 0x489f5a
mov edx, esi
lea ecx, [ebp - 0x7c]
call fcn.0043a5b0
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x489f41
mov eax, dword [eax]
mov edx, eax
mov ecx, str.File_doesnt_exist__file:__s_
call fcn.0042def0
lea ecx, [ebp - 0x7c]
call fcn.0041b400
jmp 0x48a59a
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x124], eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 4], 5
mov dword [ebp - 0xa8], 0
mov byte [ebp - 4], 7
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xc4], 1
jb 0x489fbe
mov eax, dword [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
lea ecx, [ebp - 0xac]
push ecx
push 0
push 0
push 7
push eax
call edi
test eax, eax
jne 0x48a4fb
push dword [ebp - 0xac]
call fcn.004cb23d
mov ebx, eax
add esp, 4
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0xcc], ebx
jb 0x48a002
mov eax, dword [esi]
lea ecx, [ebp - 0xac]
push ecx
push dword [ebp - 0xac]
push ebx
push 7
push eax
call edi
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x164]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x48a5b6
mov edx, ebx
mov ecx, 0x20000000
call fcn.0048a610
mov esi, 0x54f710
test al, al
mov ecx, esi
mov edi, str.does_not_have
cmove ecx, edi
mov edx, ebx
push ecx
push ecx
mov ecx, 0x40000000
call fcn.0048a610
add esp, 4
mov ecx, esi
test al, al
mov edx, ebx
cmove ecx, edi
push ecx
mov ecx, SysReAllocString
call fcn.0048a610
test al, al
mov ecx, str.Current_user__s_read_access._n___________________________Current_user__s_write_access._n___________________________Current_user__s_execute_access.
cmove esi, edi
mov edx, esi
call fcn.0042f390
add esp, 8
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0xc8]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
lea eax, [ebp - 0xb8]
push eax
push 0
push dword [ebp - 0xc8]
push 0
call ebx
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
mov edi, 2
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cb23d
mov esi, eax
xor ecx, ecx
mov eax, dword [ebp - 0xb4]
add esp, 4
mul edi
mov dword [ebp - 0xb0], esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cb23d
add esp, 4
mov edi, eax
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xa8], edi
push eax
lea eax, [ebp - 0xb4]
push eax
push edi
lea eax, [ebp - 0xb8]
push eax
push esi
push dword [ebp - 0xc8]
push 0
call ebx
mov edx, edi
lea ecx, [ebp - 0x64]
call fcn.0043a450
mov ebx, eax
mov edx, esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x7c]
call fcn.0043a450
mov byte [ebp - 4], 9
cmp dword [ebx + 0x14], 8
jb 0x48a15d
mov ebx, dword [ebx]
cmp dword [eax + 0x14], 8
jb 0x48a165
mov eax, dword [eax]
push ebx
mov edx, eax
mov ecx, str.Owner:__s_n____________________Owner_domain:__s
call fcn.0041c5c0
add esp, 4
lea ecx, [ebp - 0x7c]
call fcn.0041b400
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.0041b400
mov ebx, dword [ebp - 0xa4]
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x48a199
mov eax, dword [ebx]
lea ecx, [ebp - 0xa0]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x48a5cc
mov eax, dword [ebp - 0x84]
xor ecx, ecx
add ecx, dword [ebp - 0x80]
push 0
push 0x3e8
adc eax, 0
push eax
push ecx
call fcn.004cb280
mov ebx, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xc0], edx
push eax
call ebx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x94]
push eax
call ebx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x8c]
push eax
call ebx
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x160]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x64]
call fcn.0043a5b0
mov ebx, eax
mov byte [ebp - 4], 0xc
cmp dword [ebx + 0x14], 8
jb 0x48a23a
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0xa0]
mov edx, str.true
test cl, 1
mov dword [ebp - 0xa4], str.false
mov eax, edx
cmove eax, dword [ebp - 0xa4]
test cl, 2
mov dword [ebp - 0xdc], eax
mov eax, edx
cmove eax, dword [ebp - 0xa4]
test ecx, 0x4000
mov dword [ebp - 0xe0], eax
mov eax, edx
cmove eax, dword [ebp - 0xa4]
test cl, 0x10
mov dword [ebp - 0xe4], eax
mov eax, edx
cmove eax, dword [ebp - 0xa4]
test ecx, 0x800
push 0
mov dword [ebp - 0xe8], eax
mov eax, edx
cmove eax, dword [ebp - 0xa4]
test cl, 0x20
push 0x3b9aca00
push dword [ebp - 0x15c]
cmove edx, dword [ebp - 0xa4]
push dword [ebp - 0x160]
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xa4], edx
call fcn.004cb280
push 0
push 0x3b9aca00
push dword [ebp - 0x144]
mov dword [ebp - 0x150], eax
push dword [ebp - 0x148]
mov dword [ebp - 0x14c], edx
call fcn.004cb280
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xd4], eax
movzx eax, word [ebp - 0x40]
mov dword [ebp - 0xc0], eax
movzx eax, word [ebp - 0x42]
mov dword [ebp - 0xbc], eax
movzx eax, word [ebp - 0x44]
mov dword [ebp - 0xf0], eax
movzx eax, word [ebp - 0x46]
mov dword [ebp - 0xf4], eax
movzx eax, word [ebp - 0x4a]
mov dword [ebp - 0xf8], eax
movzx eax, word [ebp - 0x4c]
mov dword [ebp - 0x13c], eax
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x138], eax
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0x134], eax
movzx eax, word [ebp - 0x34]
mov dword [ebp - 0x130], eax
movzx eax, word [ebp - 0x36]
mov dword [ebp - 0x12c], eax
movzx eax, word [ebp - 0x3a]
mov dword [ebp - 0x120], eax
movzx eax, word [ebp - 0x3c]
mov dword [ebp - 0x128], eax
movzx eax, word [ebp - 0x20]
mov dword [ebp - 0xfc], eax
movzx eax, word [ebp - 0x22]
mov dword [ebp - 0x100], eax
movzx eax, word [ebp - 0x24]
mov dword [ebp - 0x104], eax
movzx eax, word [ebp - 0x26]
mov dword [ebp - 0x108], eax
movzx eax, word [ebp - 0x2a]
mov dword [ebp - 0x10c], eax
movzx eax, word [ebp - 0x2c]
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], ebx
mov edx, 0x57bce0
lea ecx, [ebp - 0x16c]
call fcn.004397a0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xd
push ecx
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0xe8]
push ecx
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x158]
push ecx
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0xf4]
push ecx
lea ecx, [ebp - 0xf8]
push ecx
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x138]
push ecx
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0xfc]
push ecx
lea ecx, [ebp - 0x100]
push ecx
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [eax]
sub esp, 8
call fcn.0048a7b0
mov byte [ebp - 4], 0xe
mov ebx, dword [ebp - 0x168]
test ebx, ebx
je 0x48a4eb
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x48a4eb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jne 0x48a4eb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea ecx, [ebp - 0x64]
call fcn.0041b400
mov eax, dword [ebp - 0x118]
jmp 0x48a573
mov edx, esi
lea ecx, [ebp - 0x64]
call fcn.0043a5b0
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0041a600
mov edx, eax
mov ecx, str.Couldnt_get_permission_information_for_target_file.__file:__s_
jmp 0x48a5e8
test eax, eax
je 0x48a580
push eax
call fcn.004ef010
add esp, 4
test edi, edi
je 0x48a58d
push edi
call fcn.004cb03d
add esp, 4
test esi, esi
je 0x48a59a
push esi
call fcn.004cb03d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ca771
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.0048a720
push 0
push 0
call fcn.004e22e8
mov edx, ebx
lea ecx, [ebp - 0x64]
call fcn.0043a5b0
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.0041a600
mov edx, eax
mov ecx, str.Couldnt_get_access_date_information_for_target_file.__file:__s_
call fcn.0042e1a0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.004167a0
push 0
push 0
call fcn.004e22e8
int3