Function at 0x45958c
Capabilities:
Get session user name
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x21
push 0
push 0
dec ecx
jne 0x459594
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x459ff1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x101
push 0x45a000
push 0x45a008
mov eax, dword [ebp - 4]
call fcn.00437fa0
push eax
call sub.user32.dll_MessageBoxA_1
dec eax
jne 0x459fad
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.0045a19c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 8]
call fcn.00408508
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0045a208
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0xc]
call fcn.00408508
mov dword [ebp - 0x14], 0xff
mov eax, dword [ebp - 0x14]
call fcn.00402a38
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 0x18]
call fcn.00404438
lea eax, [ebp - 0x1c]
call fcn.00404438
lea eax, [ebp - 0x20]
call fcn.00404438
lea eax, [ebp - 0x3c]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00408508
cmp dword [ebp - 0x38], 0
je 0x459838
lea eax, [ebp - 0x40]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0xc]
call fcn.00404a3c
test eax, eax
jle 0x459740
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0xc]
call fcn.00404a3c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404958
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.004044d0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x48]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0xc]
call fcn.00404a3c
mov esi, eax
lea eax, [ebp - 0x4c]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x4c]
call fcn.004046f8
add esi, eax
dec esi
push esi
mov eax, dword [ebp - 0xc]
call fcn.004046f8
mov ecx, eax
mov eax, dword [ebp - 0xc]
pop edx
call fcn.00404958
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x24]
mov eax, 0x45a02c
call fcn.00404a3c
push eax
mov eax, dword [ebp - 0x24]
call fcn.004046f8
mov ecx, eax
mov eax, dword [ebp - 0x24]
pop edx
call fcn.00404958
push dword [ebp - 0x18]
push 0x45a038
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004047b8
push dword [ebp - 0x1c]
push 0x45a04c
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004047b8
jmp 0x459838
mov edx, 0x45a02c
mov eax, dword [ebp - 0xc]
call fcn.00456ebc
mov esi, eax
mov dl, 0x5c
mov eax, esi
call fcn.004193cc
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jle 0x459838
mov ecx, 0x45a038
mov edx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x20]
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.004187ec
mov al, byte [0x45a060]
push eax
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
mov edx, 0x45a06c
mov eax, dword [ebp - 0x18]
call fcn.0040d680
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x18]
call fcn.004044d0
mov ecx, 0x45a04c
mov edx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x20]
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.004187ec
mov al, byte [0x45a060]
push eax
lea eax, [ebp - 0x54]
push eax
xor ecx, ecx
mov edx, 0x45a06c
mov eax, dword [ebp - 0x1c]
call fcn.0040d680
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x1c]
call fcn.004044d0
lea eax, [ebp - 0x5c]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.00408508
mov ecx, dword [ebp - 0x58]
mov edx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x20]
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.004187ec
mov al, byte [0x45a060]
push eax
lea eax, [ebp - 0x60]
push eax
xor ecx, ecx
mov edx, 0x45a06c
mov eax, dword [ebp - 0x20]
call fcn.0040d680
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x20]
call fcn.004044d0
xor eax, eax
push ebp
push 0x459a79
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45a02c
push dword [0x45eb04]
push 0x45a02c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004047b8
lea eax, [ebp - 0x68]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.00408508
cmp dword [ebp - 0x64], 0
je 0x459942
cmp dword [ebp - 0x18], 0
je 0x4598c2
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00404744
mov eax, dword [ebp - 0x6c]
xor ecx, ecx
mov dl, 1
call fcn.00458c60
push 0xc8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00404744
mov eax, dword [ebp - 0x70]
call fcn.00408ed4
cmp dword [ebp - 0x1c], 0
je 0x459902
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00404744
mov eax, dword [ebp - 0x74]
xor ecx, ecx
mov dl, 1
call fcn.00458c60
push 0xc8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00404744
mov eax, dword [ebp - 0x78]
call fcn.00408ed4
cmp dword [ebp - 0x20], 0
je 0x459942
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00404744
mov eax, dword [ebp - 0x7c]
xor ecx, ecx
mov dl, 1
call fcn.00458c60
push 0xc8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00404744
mov eax, dword [ebp - 0x80]
call fcn.00408ed4
push 0x80
lea eax, [ebp - 0x84]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00404744
mov eax, dword [ebp - 0x84]
call fcn.004048f8
push eax
call sub.kernel32.dll_SetFileAttributesA
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00404744
mov eax, dword [ebp - 0x88]
xor ecx, ecx
mov dl, 1
call fcn.00458c60
push 0xc8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00404744
mov eax, dword [ebp - 0x8c]
call fcn.00408ed4
push dword [ebp - 8]
push 0x45a02c
push dword [0x45eb00]
push 0x45a078
lea eax, [ebp - 0x90]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0x90]
call fcn.00408da4
test al, al
je 0x459a0f
push dword [ebp - 8]
push 0x45a02c
push dword [0x45eb00]
push 0x45a078
lea eax, [ebp - 0x94]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0x94]
call fcn.00408ed4
push dword [ebp - 8]
push 0x45a02c
push dword [0x45eb00]
push 0x45a078
lea eax, [ebp - 0x98]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0x98]
call fcn.00408da4
test al, al
je 0x459a6f
push dword [ebp - 8]
push 0x45a02c
push dword [0x45eb00]
push 0x45a078
lea eax, [ebp - 0x9c]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0x9c]
call fcn.00408ed4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459a83
push dword [ebp - 8]
push 0x45a02c
push dword [0x45eb00]
push 0x45a078
lea eax, [ebp - 0xa0]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xa0]
call fcn.00408da4
test al, al
je 0x459ae3
push dword [ebp - 8]
push 0x45a02c
push dword [0x45eb00]
push 0x45a078
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xa4]
call fcn.00408ed4
lea eax, [ebp - 0x2c]
mov edx, 0x45a088
call fcn.004044d0
push dword [ebp - 8]
push 0x45a02c
push dword [ebp - 0x2c]
push 0x45a078
lea eax, [ebp - 0xa8]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xa8]
call fcn.00408da4
test al, al
je 0x459b4a
push dword [ebp - 8]
push 0x45a02c
push dword [ebp - 0x2c]
push 0x45a078
lea eax, [ebp - 0xac]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xac]
call fcn.00408ed4
lea eax, [ebp - 0x2c]
mov edx, 0x45a0a4
call fcn.004044d0
push dword [ebp - 8]
push 0x45a02c
push dword [ebp - 0x2c]
push 0x45a078
lea eax, [ebp - 0xb0]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xb0]
call fcn.00408da4
test al, al
je 0x459bb1
push dword [ebp - 8]
push 0x45a02c
push dword [ebp - 0x2c]
push 0x45a078
lea eax, [ebp - 0xb4]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xb4]
call fcn.00408ed4
lea eax, [ebp - 0x2c]
mov edx, 0x45a0bc
call fcn.004044d0
push dword [ebp - 8]
push 0x45a02c
push dword [ebp - 0x2c]
push 0x45a078
lea eax, [ebp - 0xb8]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xb8]
call fcn.00408da4
test al, al
je 0x459c18
push dword [ebp - 8]
push 0x45a02c
push dword [ebp - 0x2c]
push 0x45a078
lea eax, [ebp - 0xbc]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xbc]
call fcn.00408ed4
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a0d8
lea eax, [ebp - 0xc0]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xc0]
call fcn.00408da4
test al, al
je 0x459c78
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a0d8
lea eax, [ebp - 0xc4]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xc4]
call fcn.00408ed4
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a0f4
lea eax, [ebp - 0xc8]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xc8]
call fcn.00408da4
test al, al
je 0x459cd8
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a0f4
lea eax, [ebp - 0xcc]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xcc]
call fcn.00408ed4
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a10c
lea eax, [ebp - 0xd0]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xd0]
call fcn.00408da4
test al, al
je 0x459d38
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a10c
lea eax, [ebp - 0xd4]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xd4]
call fcn.00408ed4
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a02c
push dword [0x45eb00]
push 0x45a078
lea eax, [ebp - 0xd8]
mov edx, 6
call fcn.004047b8
mov eax, dword [ebp - 0xd8]
call fcn.00408da4
test al, al
je 0x459dae
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a02c
push dword [0x45eb00]
push 0x45a078
lea eax, [ebp - 0xdc]
mov edx, 6
call fcn.004047b8
mov eax, dword [ebp - 0xdc]
call fcn.00408ed4
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a12c
lea eax, [ebp - 0xe0]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xe0]
call fcn.00408da4
test al, al
je 0x459e0e
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a12c
lea eax, [ebp - 0xe4]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xe4]
call fcn.00408ed4
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a140
lea eax, [ebp - 0xe8]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xe8]
call fcn.00408da4
test al, al
je 0x459e6e
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a140
lea eax, [ebp - 0xec]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xec]
call fcn.00408ed4
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a158
lea eax, [ebp - 0xf0]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xf0]
call fcn.00408da4
test al, al
je 0x459ece
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a158
lea eax, [ebp - 0xf4]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xf4]
call fcn.00408ed4
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a174
lea eax, [ebp - 0xf8]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xf8]
call fcn.00408da4
test al, al
je 0x459f2e
push dword [ebp - 0xc]
push 0x45a02c
push dword [0x45eb04]
push 0x45a174
lea eax, [ebp - 0xfc]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xfc]
call fcn.00408ed4
mov dl, 1
mov eax, dword [0x415b54]
call fcn.00403694
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x104]
mov eax, dword [0x45cc6c]
mov eax, dword [eax]
call fcn.004513a4
mov eax, dword [ebp - 0x104]
lea edx, [ebp - 0x100]
call fcn.00408f74
lea eax, [ebp - 0x100]
mov edx, 0x45a190
call fcn.00404700
mov edx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x68]
lea ecx, [ebp - 0x108]
xor edx, edx
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 4]
call fcn.0045a658
lea eax, [ebp - 0x28]
call fcn.0040dd94
push 0
call sub.user32.dll_UpdateWindow
jmp 0x459fb9
mov eax, dword [0x45cc6c]
mov eax, dword [eax]
call fcn.00450dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459ff8
lea eax, [ebp - 0x108]
mov edx, 0x38
call fcn.0040445c
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.0040445c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040445c
ret