Function at 0x451460
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x540ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x164]
or ebp, 0xffffffff
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x3c], ebx
jne 0x4514a9
mov ecx, dword [esp + 0x44]
mov dword [ecx], 6
jmp 0x4516ae
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x28]
push 1
push edx
push ebx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call edi
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x164]
push ebx
push ebx
push ebx
push eax
call edi
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x20]
push ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x164]
push ecx
lea edx, [esi + 0x14]
push 0xd4
push edx
push eax
mov dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x451561
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x44]
push eax
push edx
mov dword [ecx], eax
call fcn.004226f0
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push str.Save2Storage__StampSession___s
push ecx
mov byte [esp + 0x48], 1
call fcn.0050e6c7
add esp, 0xc
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], bl
call fcn.005128e4
mov edx, dword [esp + 0x10]
push 0xffffb1bc
push edx
call fcn.004227e0
add esp, 8
mov ecx, esi
call fcn.00452a50
jmp 0x4516ae
mov ecx, dword [esi + 0x164]
lea eax, [esp + 0x30]
push 2
push eax
push ebx
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call edi
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
cmp eax, ecx
jne 0x451592
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
cmp edx, eax
je 0x4515f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x44]
push eax
push edx
mov dword [ecx], eax
call fcn.004226f0
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push str.Save2Storage__StampSession_end__:__s
push ecx
mov byte [esp + 0x48], 2
call fcn.0050e6c7
add esp, 0xc
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], bl
call fcn.005128e4
mov edx, dword [esp + 0x10]
push 0xffffb1bb
push edx
call fcn.004227e0
add esp, 8
mov ecx, esi
call fcn.00452a50
jmp 0x4516ae
mov ecx, esi
call fcn.00452a50
lea eax, [esi + 4]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
call fcn.00512b13
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 3
call fcn.00451710
test eax, eax
je 0x4516d0
mov ecx, dword [0x5ab980]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push 0x5021
push eax
mov byte [esp + 0x48], 4
call fcn.0050e6da
lea ecx, [esp + 0x28]
push 0x5022
push ecx
call fcn.00422640
push ebx
push 0x11
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x60], 5
call fcn.0042e190
add esp, 0x24
cmp eax, 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 4
setne byte [esp + 0x48]
call fcn.005128e4
cmp byte [esp + 0x48], bl
je 0x4516c2
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 3
mov dword [eax], 0x3ee
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], bl
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], ebp
call fcn.005128e4
mov eax, 0xffffffeb
jmp 0x4516f3
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 3
call fcn.005128e4
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x18]
inc eax
mov byte [esp + 0x3c], bl
mov dword [esi + 0x10], eax
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], ebp
call fcn.005128e4
xor eax, eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8