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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1c
push 0
push 0
dec ecx
jne 0x459198
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x459a5b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x101
push 0x459a6c
push 0x459a74
mov eax, dword [ebp - 4]
call fcn.00438fa8
push eax
call sub.user32.dll_MessageBoxA_1
dec eax
jne 0x459a17
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00459b98
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 8]
call fcn.00408500
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00459c04
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xc]
call fcn.00408500
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 - 0x38]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00408500
cmp dword [ebp - 0x34], 0
je 0x45943d
lea eax, [ebp - 0x3c]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0xc]
call fcn.00404a3c
test eax, eax
jle 0x459345
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x40]
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 - 0x44]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0xc]
call fcn.00404a3c
mov esi, eax
lea eax, [ebp - 0x48]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x48]
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, 0x459a98
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 0x459aa4
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004047b8
push dword [ebp - 0x1c]
push 0x459ab8
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004047b8
jmp 0x45943d
mov edx, 0x459a98
mov eax, dword [ebp - 0xc]
call fcn.00456b44
mov esi, eax
mov dl, 0x5c
mov eax, esi
call fcn.00419390
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jle 0x45943d
mov ecx, 0x459aa4
mov edx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x20]
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.004187b0
mov al, byte [0x459acc]
push eax
lea eax, [ebp - 0x4c]
push eax
xor ecx, ecx
mov edx, 0x459ad8
mov eax, dword [ebp - 0x18]
call fcn.0040d644
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x18]
call fcn.004044d0
mov ecx, 0x459ab8
mov edx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x20]
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.004187b0
mov al, byte [0x459acc]
push eax
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
mov edx, 0x459ad8
mov eax, dword [ebp - 0x1c]
call fcn.0040d644
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
call fcn.004044d0
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.00408500
mov ecx, dword [ebp - 0x54]
mov edx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x20]
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.004187b0
mov al, byte [0x459acc]
push eax
lea eax, [ebp - 0x5c]
push eax
xor ecx, ecx
mov edx, 0x459ad8
mov eax, dword [ebp - 0x20]
call fcn.0040d644
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x20]
call fcn.004044d0
xor eax, eax
push ebp
push 0x459678
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x459a98
push dword [0x45de74]
push 0x459a98
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004047b8
lea eax, [ebp - 0x64]
mov edx, ebx
call fcn.00404630
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00408500
cmp dword [ebp - 0x60], 0
je 0x459547
cmp dword [ebp - 0x18], 0
je 0x4594c7
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00404744
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dl, 1
call fcn.00458838
push 0xc8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00404744
mov eax, dword [ebp - 0x6c]
call fcn.00408e98
cmp dword [ebp - 0x1c], 0
je 0x459507
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00404744
mov eax, dword [ebp - 0x70]
xor ecx, ecx
mov dl, 1
call fcn.00458838
push 0xc8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00404744
mov eax, dword [ebp - 0x74]
call fcn.00408e98
cmp dword [ebp - 0x20], 0
je 0x459547
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00404744
mov eax, dword [ebp - 0x78]
xor ecx, ecx
mov dl, 1
call fcn.00458838
push 0xc8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00404744
mov eax, dword [ebp - 0x7c]
call fcn.00408e98
push 0x80
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00404744
mov eax, dword [ebp - 0x80]
call fcn.004048f8
push eax
call sub.kernel32.dll_SetFileAttributesA
lea eax, [ebp - 0x84]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00404744
mov eax, dword [ebp - 0x84]
xor ecx, ecx
mov dl, 1
call fcn.00458838
push 0xc8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00404744
mov eax, dword [ebp - 0x88]
call fcn.00408e98
push dword [ebp - 8]
push 0x459a98
push dword [0x45de70]
push 0x459ae4
lea eax, [ebp - 0x8c]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0x8c]
call fcn.00456c14
test al, al
je 0x45960e
push dword [ebp - 8]
push 0x459a98
push dword [0x45de70]
push 0x459ae4
lea eax, [ebp - 0x90]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0x90]
call fcn.00408e98
push dword [ebp - 8]
push 0x459a98
push dword [0x45de70]
push 0x459ae4
lea eax, [ebp - 0x94]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0x94]
call fcn.00456c14
test al, al
je 0x45966e
push dword [ebp - 8]
push 0x459a98
push dword [0x45de70]
push 0x459ae4
lea eax, [ebp - 0x98]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0x98]
call fcn.00408e98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459682
push dword [ebp - 8]
push 0x459a98
push dword [0x45de70]
push 0x459ae4
lea eax, [ebp - 0x9c]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0x9c]
call fcn.00456c14
test al, al
je 0x4596e2
push dword [ebp - 8]
push 0x459a98
push dword [0x45de70]
push 0x459ae4
lea eax, [ebp - 0xa0]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xa0]
call fcn.00408e98
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459af4
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xa4]
call fcn.00456c14
test al, al
je 0x459742
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459af4
lea eax, [ebp - 0xa8]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xa8]
call fcn.00408e98
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459b10
lea eax, [ebp - 0xac]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xac]
call fcn.00456c14
test al, al
je 0x4597a2
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459b10
lea eax, [ebp - 0xb0]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xb0]
call fcn.00408e98
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459a98
push dword [0x45de70]
push 0x459ae4
lea eax, [ebp - 0xb4]
mov edx, 6
call fcn.004047b8
mov eax, dword [ebp - 0xb4]
call fcn.00456c14
test al, al
je 0x459818
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459a98
push dword [0x45de70]
push 0x459ae4
lea eax, [ebp - 0xb8]
mov edx, 6
call fcn.004047b8
mov eax, dword [ebp - 0xb8]
call fcn.00408e98
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459b28
lea eax, [ebp - 0xbc]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xbc]
call fcn.00456c14
test al, al
je 0x459878
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459b28
lea eax, [ebp - 0xc0]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xc0]
call fcn.00408e98
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459b3c
lea eax, [ebp - 0xc4]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xc4]
call fcn.00456c14
test al, al
je 0x4598d8
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459b3c
lea eax, [ebp - 0xc8]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xc8]
call fcn.00408e98
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459b54
lea eax, [ebp - 0xcc]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xcc]
call fcn.00456c14
test al, al
je 0x459938
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459b54
lea eax, [ebp - 0xd0]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xd0]
call fcn.00408e98
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459b70
lea eax, [ebp - 0xd4]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xd4]
call fcn.00456c14
test al, al
je 0x459998
push dword [ebp - 0xc]
push 0x459a98
push dword [0x45de74]
push 0x459b70
lea eax, [ebp - 0xd8]
mov edx, 4
call fcn.004047b8
mov eax, dword [ebp - 0xd8]
call fcn.00408e98
mov dl, 1
mov eax, dword [0x415b18]
call fcn.00403694
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0xe0]
mov eax, dword [0x45c898]
mov eax, dword [eax]
call fcn.00452424
mov eax, dword [ebp - 0xe0]
lea edx, [ebp - 0xdc]
call fcn.00408f38
lea eax, [ebp - 0xdc]
mov edx, 0x459b8c
call fcn.00404700
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x68]
lea ecx, [ebp - 0xe4]
xor edx, edx
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 4]
call fcn.0045a054
lea eax, [ebp - 0x28]
call fcn.0040dd58
push 0
call sub.user32.dll_UpdateWindow
jmp 0x459a23
mov eax, dword [0x45c898]
mov eax, dword [eax]
call fcn.00451e50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459a62
lea eax, [ebp - 0xe4]
mov edx, 0x2f
call fcn.0040445c
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.0040445c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040445c
ret