Function at 0x432570
Capabilities:
Check if file exists
Delete file
Encode data using xor
Get file size
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45344c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1454
call fcn.0044e2b0
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x1450], eax
push ebx
push esi
push edi
mov eax, dword [0x48e050]
xor eax, esp
push eax
lea eax, [esp + 0x1468]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, edx
mov edx, dword [0x491d10]
mov edi, ecx
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x491d10
mov dword [esp + 0x20], edi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x1470], 0
mov edx, dword [0x491d10]
mov eax, dword [edx + 0xc]
mov ecx, 0x491d10
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x1470], 1
cmp dword [edi + 0xc], 0
mov dword [esp + 0x1c], 0
jne 0x43266c
add esi, 0xfffffff0
mov byte [esp + 0x1470], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432637
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x1470], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432662
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xa
jmp 0x432b8a
push 0xa14
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.004416b0
mov edx, dword [0x458010]
mov eax, dword [0x458014]
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call fcn.00432bb0
test eax, eax
jne 0x4326fb
mov byte [esp + 0x1470], al
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4326c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1470], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4326f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x432b8a
cmp dword [esp + 0x858], 2
jne 0x432719
cmp dword [esp + 0x838], 0xa00000
jbe 0x432781
mov edi, 6
jmp 0x43272b
cmp dword [esp + 0x838], 0xc800000
jbe 0x432781
mov edi, 7
lea eax, [esi - 0x10]
mov byte [esp + 0x1470], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43274f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1470], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43277a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x432b8a
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.00433030
lea edi, [esp + 0x14]
mov byte [esp + 0x1470], 2
call fcn.0042e780
mov byte [esp + 0x1470], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4327cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 0xc], 0
jne 0x43282e
add esi, 0xfffffff0
mov byte [esp + 0x1470], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4327fd
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [ebx - 0x10]
mov dword [esp + 0x1470], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432824
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 5
jmp 0x432b8a
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43293e
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
push 0x80
push 3
push eax
push 1
push bind
lea ecx, [esp + 0x50]
push ecx
call esi
mov edi, eax
test edi, edi
je 0x432b73
cmp edi, 0xffffffff
je 0x432b73
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ebx
call esi
mov ebx, eax
test ebx, ebx
je 0x432b6c
cmp ebx, 0xffffffff
je 0x432b6c
push ebx
lea edx, [esp + 0x30]
mov ecx, edi
call fcn.00432e40
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call edi
test esi, esi
je 0x4328d7
push ebx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x18]
call fcn.004014d0
lea ecx, [esp + 0x14]
call fcn.004014d0
mov eax, esi
jmp 0x432b8a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x34]
lea ecx, [esp + 0x24]
call fcn.004332a0
lea edi, [esp + 0x18]
mov byte [esp + 0x1470], 3
call fcn.0042e780
lea ecx, [esp + 0x1c]
call fcn.004014d0
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jne 0x43291b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4328b3
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x432957
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x18]
call fcn.004014d0
lea ecx, [esp + 0x14]
call fcn.004014d0
xor eax, eax
jmp 0x432b8a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00433510
test eax, eax
jne 0x43299d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x18]
call fcn.004014d0
lea ecx, [esp + 0x14]
call fcn.004014d0
mov eax, 9
jmp 0x432b8a
push 0x984
push str.sizeof_BackupHeader.BackupInfo_:__d
call fcn.00404c20
add esp, 8
or edx, 0xffffffff
cmp dword [0x496700], 0
jne 0x4329c0
call fcn.00402fd0
xor ecx, ecx
movzx esi, byte [esp + ecx + 0x38]
xor esi, edx
mov eax, edx
movzx edx, byte [esp + ecx + 0x39]
shr eax, 8
and esi, 0xff
xor eax, dword [esi*4 + 0x492930]
add ecx, 6
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x492930]
movzx edx, byte [esp + ecx + 0x34]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x492930]
movzx edx, byte [esp + ecx + 0x35]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x492930]
movzx edx, byte [esp + ecx + 0x36]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x492930]
movzx edx, byte [esp + ecx + 0x37]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x492930]
cmp ecx, 0x984
mov edx, eax
jl 0x4329c2
not edx
push edx
push str.BackupHeader.InfoCRC:__08x
mov dword [esp + 0x9c4], edx
call fcn.00404c20
push 0x984
mov ecx, 0x285
lea esi, [esp + 0x38]
lea edi, [esp + 0xa50]
push str.sizeof_BACKUP_FILE_INFO_:__d
rep movsd dword es:[edi], dword [esi]
call fcn.00404c20
add esp, 0x10
mov ecx, 0xbac4b555
mov eax, 0x984
lea edx, [esp + 0x38]
call fcn.00432df0
cmp eax, 0x984
je 0x432add
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x18]
call fcn.004014d0
lea ecx, [esp + 0x14]
call fcn.004014d0
or eax, 0xffffffff
jmp 0x432b8a
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x432b03
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x432b73
push 0
lea edx, [esp + 0x2c]
push edx
push 0xa14
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], 0xa14
jne 0x432af6
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x432b4b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x432b73
cmp dword [esp + 0x1270], 2
jne 0x43293e
mov ecx, dword [esp + 0x1250]
mov eax, dword [esp + 0x20]
add dword [eax + 8], ecx
jmp 0x43293e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
call fcn.004014d0
lea ecx, [esp + 0x14]
call fcn.004014d0
mov eax, 1
mov ecx, dword [esp + 0x1468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1450]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret 4