Function at 0x110887a0
Capabilities:
Delete file
Get common file path
Get file attributes
Get session user name
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111dee41
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [0x1127b21c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x90]
push 0
push 0xffffffffffffffff
call edx
lea eax, [ebp - 0x2b8]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
test eax, eax
js 0x11088a1d
lea ecx, [ebp - 0x2d4]
push ecx
lea edx, [ebp - 0x60]
push edx
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x2d4], 0x50
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.1113ccd0
push str.Rewards.bin
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 4], 0
call fcn.1113dca0
mov edx, dword [ebp - 0x2c8]
mov eax, dword [edx]
lea ecx, [ebp - 0x2c8]
call eax
test al, al
jne 0x11088873
push 0x266
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 0x2bc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x2c8]
mov eax, dword [edx]
lea ecx, [ebp - 0x2c8]
call eax
test al, al
jne 0x110888ab
push 0x266
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 0x2bc]
push 0x111f88e8
push ecx
call dword [sym.imp.MSVCR100.dll__wfopen]
add esp, 8
cmp byte [ebp - 0x60], 0
mov edi, eax
je 0x11088995
test edi, edi
je 0x11088995
push edi
lea ecx, [ebp - 0x2fc]
call fcn.1102f660
mov edx, dword [esi + 0x484]
push edx
lea eax, [ebp - 0xb0]
push str._05d
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x2d0]
call fcn.1104c410
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x11088915
sub eax, edx
push eax
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x2d0]
call fcn.1104ccd0
lea eax, [ebp - 0xb0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x11088937
sub eax, edx
push eax
lea edx, [ebp - 0xb0]
push edx
mov eax, edx
push eax
lea ecx, [ebp - 0x2d0]
call fcn.1104d0f0
push eax
lea ecx, [ebp - 0xb0]
push ecx
call fcn.110e8b70
mov esi, eax
push edi
push esi
call dword [sym.imp.MSVCR100.dll_fputs]
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x14
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 1
call fcn.1104c430
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 0
call fcn.1102f6a0
mov edx, dword [ebp - 0x2c8]
mov eax, dword [edx]
lea ecx, [ebp - 0x2c8]
call eax
test al, al
jne 0x110889c0
push 0x266
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 0x2bc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x2c8]
mov esi, eax
mov eax, dword [edx]
lea ecx, [ebp - 0x2c8]
call eax
test al, al
jne 0x110889fa
push 0x266
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 0x2bc]
or esi, 2
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 4], 0xffffffff
call fcn.1113cd80
mov ecx, dword [0x1127b21c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x90]
push 0
push 0
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret