Function at 0x45a880
Capabilities:
Delete file
Get session user name
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3ab8
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xad0
mov eax, dword [0x521e28]
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xac0], ecx
mov eax, dword [ebp - 0xac0]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x45a8cc
cmp dword [ebp + 8], 0
jne 0x45a8d3
xor al, al
jmp 0x45b1df
mov edx, dword [ebp - 0xac0]
cmp dword [edx + 0x228], 0
jne 0x45a8e9
mov al, 1
jmp 0x45b1df
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xac4], ecx
mov edx, dword [ebp - 0xac4]
sub edx, 1
mov dword [ebp - 0xac4], edx
cmp dword [ebp - 0xac4], 4
ja case.default.0x45a916
mov eax, dword [ebp - 0xac4]
jmp dword [eax*4 + 0x45b200]
mov ecx, dword [ebp - 0xac0]
cmp dword [ecx + 0x22c], 0
jne 0x45a933
mov al, 1
jmp 0x45b1df
jmp case.default.0x45a916
mov edx, dword [ebp - 0xac0]
cmp dword [edx + 0x230], 0
jne 0x45a94b
mov al, 1
jmp 0x45b1df
jmp case.default.0x45a916
mov eax, dword [ebp - 0xac0]
cmp dword [eax + 0x234], 0
jne 0x45a963
mov al, 1
jmp 0x45b1df
jmp case.default.0x45a916
mov ecx, dword [ebp - 0xac0]
cmp dword [ecx + 0x238], 0
jne 0x45a97b
mov al, 1
jmp 0x45b1df
jmp case.default.0x45a916
mov edx, dword [ebp - 0xac0]
cmp dword [edx + 0x23c], 0
jne case.default.0x45a916
mov al, 1
jmp 0x45b1df
mov byte [ebp - 0x59], 0
push 0xaca
call fcn.0048c52d
add esp, 4
mov dword [ebp - 0xab0], eax
mov eax, dword [ebp - 0xab0]
mov dword [ebp - 0x1c], eax
mov cx, word [0x502d14]
mov word [ebp - 0x268], cx
push 0x206
push 0
lea edx, [ebp - 0x266]
push edx
call fcn.004ad2c0
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.0045c490
mov dword [ebp - 4], 0
mov byte [ebp - 0x58], 0
mov eax, dword [ebp - 0xac0]
mov ecx, dword [eax + 0x240]
shl ecx, 0xa
shl ecx, 0xa
mov dword [ebp - 0xacc], ecx
mov dword [ebp - 0xac8], 0
fild qword [ebp - 0xacc]
fstp qword [ebp - 0x50]
mov byte [ebp - 0x48], 5
mov byte [ebp - 0x47], 0
mov edx, dword [ebp - 0xac0]
add edx, 0x20
push edx
push 0x104
lea eax, [ebp - 0x268]
push eax
call fcn.00405230
lea ecx, [ebp - 0x268]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x268]
push edx
lea ecx, [ebp - 0x44]
call fcn.0045c6e0
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x15]
call fcn.0045c470
mov byte [ebp - 4], 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x15]
call fcn.00460cd0
cmp dword [ebp - 0x60], 4
je 0x45aa82
jmp 0x45abca
mov dx, word [0x502d18]
mov word [ebp - 0x890], dx
push 0x206
push 0
lea eax, [ebp - 0x88e]
push eax
call fcn.004ad2c0
add esp, 0xc
mov ecx, dword [ebp - 0xac0]
add ecx, 0x20
push ecx
push 0x104
lea edx, [ebp - 0x890]
push edx
call fcn.00405230
lea eax, [ebp - 0x890]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov cx, word [0x502d1c]
mov word [ebp - 0xa98], cx
push 0x206
push 0
lea edx, [ebp - 0xa96]
push edx
call fcn.004ad2c0
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x45ab1c
push 0x104
lea ecx, [ebp - 0xa98]
push ecx
push str.nspupdt_______________.log
lea edx, [ebp - 0x890]
push edx
call fcn.0041b860
add esp, 0x10
jmp 0x45ab3c
push 0x104
lea eax, [ebp - 0xa98]
push eax
push str.nspreport_________.log
lea ecx, [ebp - 0x890]
push ecx
call fcn.0041b860
add esp, 0x10
mov dx, word [0x502d88]
mov word [ebp - 0x688], dx
push 0x206
push 0
lea eax, [ebp - 0x686]
push eax
call fcn.004ad2c0
add esp, 0xc
lea ecx, [ebp - 0xa98]
push ecx
lea edx, [ebp - 0x890]
push edx
push 0x502d8c
push 0x104
lea eax, [ebp - 0x688]
push eax
call fcn.00401cd0
add esp, 0x14
lea ecx, [ebp - 0x688]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45abc5
mov byte [ebp - 0xab1], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15]
call fcn.0045c480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0045c4c0
mov al, byte [ebp - 0xab1]
jmp 0x45b1df
jmp 0x45aa67
mov ecx, dword [ebp - 0xac0]
call fcn.0045a710
mov ecx, dword [ebp - 0xac0]
mov ecx, dword [ecx + 0x240]
shl ecx, 0xa
shl ecx, 0xa
xor esi, esi
mov dword [ebp - 0xad4], ecx
mov dword [ebp - 0xad0], esi
mov dword [ebp - 0xadc], eax
mov dword [ebp - 0xad8], edx
mov edx, dword [ebp - 0xad0]
cmp edx, dword [ebp - 0xad8]
ja 0x45ac2f
jb 0x45ac1f
mov eax, dword [ebp - 0xad4]
cmp eax, dword [ebp - 0xadc]
jae 0x45ac2f
mov ecx, dword [ebp - 0xac0]
add ecx, 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x20], 0
push 0xaca
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004ad2c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push SysReAllocString
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
call fcn.00405280
test eax, eax
jl 0x45ac87
cmp dword [ebp - 0x20], 0
je 0x45ac87
mov edx, dword [ebp + 8]
add edx, 4
push edx
push 0x565
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00402280
mov ecx, dword [ebp - 0xac0]
add ecx, 0x244
push ecx
push 0x565
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00402280
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xae0], ecx
mov edx, dword [ebp - 0xae0]
sub edx, 1
mov dword [ebp - 0xae0], edx
cmp dword [ebp - 0xae0], 4
ja case.default.0x45accf
mov eax, dword [ebp - 0xae0]
jmp dword [eax*4 + 0x45b214]
mov ecx, dword [ebp - 0xac0]
add ecx, 0x258
push ecx
push 0x565
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00402280
jmp 0x45ad83
mov eax, dword [ebp - 0xac0]
add eax, 0x294
push eax
push 0x565
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00402280
jmp 0x45ad83
mov edx, dword [ebp - 0xac0]
add edx, 0x30c
push edx
push 0x565
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00402280
jmp 0x45ad83
mov ecx, dword [ebp - 0xac0]
add ecx, 0x348
push ecx
push 0x565
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00402280
jmp 0x45ad83
mov eax, dword [ebp - 0xac0]
add eax, 0x2d0
push eax
push 0x565
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00402280
jmp 0x45ad83
mov edx, dword [ebp - 0xac0]
add edx, 0x2d0
push edx
push 0x565
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00402280
mov ecx, dword [ebp - 0xac0]
add ecx, 0x244
push ecx
push 0x565
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00402280
lea eax, [ebp - 0x20]
push eax
push SysReAllocString
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
call fcn.00405280
test eax, eax
jl 0x45add2
cmp dword [ebp - 0x20], 0
je 0x45add2
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
push 0x565
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00402280
mov ecx, dword [ebp - 0xac0]
add ecx, 0x244
push ecx
push 0x565
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00402280
lea eax, [ebp - 0x20]
push eax
push SysReAllocString
mov ecx, dword [ebp + 8]
add ecx, 0xa0
push ecx
call fcn.00405280
test eax, eax
jl 0x45ae27
cmp dword [ebp - 0x20], 0
je 0x45ae27
mov edx, dword [ebp + 8]
add edx, 0xa0
push edx
push 0x565
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00402280
mov ecx, dword [ebp - 0xac0]
add ecx, 0x244
push ecx
push 0x565
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00402280
lea eax, [ebp - 0x20]
push eax
push SysReAllocString
mov ecx, dword [ebp + 8]
add ecx, 0x4a0
push ecx
call fcn.00405280
test eax, eax
jl 0x45ae7c
cmp dword [ebp - 0x20], 0
je 0x45ae7c
mov edx, dword [ebp + 8]
add edx, 0x4a0
push edx
push 0x565
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00402280
mov ecx, dword [ebp - 0xac0]
add ecx, 0x244
push ecx
push 0x565
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00402280
push 0x208
push 0
mov eax, dword [ebp - 0xac0]
add eax, 0x398
push eax
call fcn.004ad2c0
add esp, 0xc
push 0xa
push 0x208
mov ecx, dword [ebp - 0xac0]
add ecx, 0x398
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x8a0]
push eax
call fcn.004b4662
add esp, 0x10
lea ecx, [ebp - 0x20]
push ecx
push SysReAllocString
mov edx, dword [ebp - 0xac0]
add edx, 0x398
push edx
call fcn.00405280
test eax, eax
jl 0x45af19
cmp dword [ebp - 0x20], 0
je 0x45af19
mov eax, dword [ebp - 0xac0]
add eax, 0x398
push eax
push 0x565
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00402280
jmp 0x45af2c
push 0x502d98
push 0x565
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00402280
mov eax, dword [ebp - 0xac0]
add eax, 0x244
push eax
push 0x565
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00402280
mov dx, word [0x502d9c]
mov word [ebp - 0x478], dx
push 0x206
push 0
lea eax, [ebp - 0x476]
push eax
call fcn.004ad2c0
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea ecx, [ebp - 0x20]
push ecx
push SysReAllocString
mov edx, dword [ebp + 8]
add edx, 0x8a4
push edx
call fcn.00405280
test eax, eax
jl 0x45afaf
cmp dword [ebp - 0x20], 0
je 0x45afaf
mov eax, dword [ebp + 8]
add eax, 0x8a4
push eax
push 0x104
lea ecx, [ebp - 0x478]
push ecx
call fcn.00405230
jmp 0x45afda
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x45afda
push 0x502da0
push 0x104
lea ecx, [ebp - 0x478]
push ecx
call fcn.00405230
lea edx, [ebp - 0x478]
push edx
push 0x565
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00402280
mov ecx, dword [ebp - 0xac0]
add ecx, 0x248
push ecx
push 0x565
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00402280
mov dword [ebp - 0x26c], 0xffffffff
mov eax, dword [ebp - 0xac0]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
push 2
mov ecx, dword [ebp - 0xac0]
add ecx, 0x20
push ecx
mov ecx, dword [ebp - 0xac0]
call fcn.0045bc80
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov edx, dword [ebp - 0xac0]
add edx, 0x20
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0xffffffff
je 0x45b11b
mov dword [ebp - 0xaa0], 0
xor eax, eax
mov dword [ebp - 0xa9c], eax
mov dword [ebp - 0xaa8], 0
xor ecx, ecx
mov dword [ebp - 0xaa4], ecx
push 2
lea edx, [ebp - 0xaa8]
push edx
mov eax, dword [ebp - 0xa9c]
push eax
mov ecx, dword [ebp - 0xaa0]
push ecx
mov edx, dword [ebp - 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 0xaac], 0
lea eax, [ebp - 0xaac]
push eax
push SysReAllocString
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00405280
push 0
lea edx, [ebp - 0x47c]
push edx
mov eax, dword [ebp - 0xaac]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x26c], 0xffffffff
mov byte [ebp - 0x59], 1
jmp 0x45b136
mov ecx, dword [ebp - 0xac0]
add ecx, 0x20
push ecx
push 0x502db0
call fcn.00405640
add esp, 8
mov byte [ebp - 0x59], 0
jmp 0x45b156
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0xac0]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x26c], 0
je 0x45b18c
cmp dword [ebp - 0x26c], 0xffffffff
je 0x45b18c
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x26c], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xab8], ecx
mov edx, dword [ebp - 0xab8]
push edx
call fcn.0048c532
add esp, 4
mov dword [ebp - 0x1c], 0
mov al, byte [ebp - 0x59]
mov byte [ebp - 0xab9], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15]
call fcn.0045c480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0045c4c0
mov al, byte [ebp - 0xab9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004ad2aa
mov esp, ebp
pop ebp
ret 8