Function at 0x44b550
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dac0
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x170], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x158], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x154], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x14c], ecx
mov edi, 2
mov dword [ebp - 0x140], edi
test eax, eax
je 0x44b9c1
cmp byte [eax], 0
je 0x44b9c1
mov ecx, ebx
call fcn.00449980
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x160], 1
mov ecx, dword [ebp - 0x144]
lea eax, [ebx + 0x2c]
sub eax, ecx
mov dword [ebp - 0x15c], eax
mov al, byte [ecx]
mov edx, dword [ebp - 0x15c]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
mov edx, dword [ebp - 0x144]
jne 0x44b603
mov eax, dword [ebp - 0x154]
dec eax
cmp eax, 3
ja case.default.0x44b627
jmp dword [eax*4 + 0x44b9e4]
xor esi, esi
mov dword [ebp - 0x148], esi
jmp 0x44b663
push edx
call fcn.0048b440
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov dword [ebp - 0x148], esi
jmp 0x44b663
mov esi, 1
mov dword [ebp - 0x148], esi
jmp 0x44b663
mov dword [ebp - 0x160], esi
mov eax, dword [ebp - 0x150]
and eax, 0x40000000
mov dword [ebp - 0x168], eax
je 0x44b6ca
mov dword [ebx + 0x18], 1
lea eax, [ebx + 0x2c]
push eax
call fcn.0048b440
add esp, 4
test eax, eax
je 0x44b6b9
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebx + 0x2c]
push eax
call fcn.004c6b85
add esp, 8
test eax, eax
jne 0x44b6b9
cmp dword [ebp - 0x128], eax
jne 0x44b6b9
mov esi, 1
mov dword [ebp - 0x148], esi
jmp 0x44b6ca
test esi, esi
jne 0x44b6ca
mov dword [ebx + 0x1c], 1
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x20], eax
mov ecx, dword [ebx + 0x334]
test ecx, ecx
je 0x44b6e4
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x334], 0
cmp dword [ebp - 0x160], 0
je 0x44b97a
push 0
mov edi, dword [ebp - 0x14c]
mov eax, dword [edi + 0x10]
or eax, 0x10000000
push eax
push dword [ebp - 0x154]
push 0
push dword [ebp - 0x158]
push dword [ebp - 0x150]
lea eax, [ebx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx + 0x32c], eax
cmp eax, 0xffffffff
je 0x44b947
push edi
push esi
mov ecx, ebx
call fcn.0044d1a0
mov edi, eax
mov dword [ebp - 0x140], edi
test edi, edi
je 0x44b924
mov eax, dword [ebx + 0x164]
mov dword [ebp - 0x16c], eax
mov ecx, ebx
call fcn.0044e700
mov dword [ebp - 0x15c], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x164], eax
push dword [ebx + 0x32c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x32c], 0
cmp dword [ebp + 0x20], 0
je 0x44b920
cmp edi, 7
jne 0x44b804
cmp dword [ebp - 0x15c], 0
je 0x44b812
cmp dword [ebp - 0x164], 0
jne 0x44b812
push 0
push dword [ebp - 0x14c]
push 0
push 3
push 0
push 0xc0000000
push dword [ebp - 0x144]
mov ecx, ebx
call fcn.0044b550
mov edi, eax
mov dword [ebp - 0x140], edi
test edi, edi
jne 0x44b804
push eax
mov ecx, ebx
call fcn.0044b2e0
push edi
push dword [ebp - 0x14c]
push edi
push dword [ebp - 0x154]
push dword [ebp - 0x158]
push dword [ebp - 0x150]
push dword [ebp - 0x144]
mov ecx, ebx
call fcn.0044b550
mov edi, eax
mov dword [ebp - 0x140], edi
cmp edi, 5
je 0x44b812
cmp edi, 7
jne 0x44b920
cmp dword [ebp - 0x168], 0
je 0x44b920
test esi, esi
jne 0x44b920
push 0x104
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.004b8570
push 0x104
mov esi, dword [ebp - 0x144]
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.00488a00
add esp, 0x18
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44b860
sub ecx, edx
mov byte [ebp + ecx - 0x119], 0x30
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.004c56c4
add esp, 8
test eax, eax
je 0x44b920
mov eax, dword [ebx]
push dword [ebp - 0x16c]
push esi
push str.Corrupt_file___s__type__d__accessed_for_write_access._Resetting.
push 0
push ebx
call dword [eax + 8]
lea eax, [ebp - 0x118]
push eax
call fcn.0048b440
add esp, 0x18
test eax, eax
je 0x44b8bd
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x44b8d6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.0048b440
add esp, 4
test eax, eax
jne 0x44b90b
push eax
push dword [ebp - 0x14c]
push dword [ebp + 0x18]
push 2
push dword [ebp - 0x158]
push dword [ebp - 0x150]
push esi
mov ecx, ebx
call fcn.0044b550
mov edi, eax
mov dword [ebp - 0x140], edi
test edi, edi
je 0x44b924
mov eax, dword [ebx]
push esi
push str.Unable_to_recover_from_corrupt_file__s__
push 0
push ebx
call dword [eax + 8]
add esp, 0x10
test edi, edi
jne 0x44b97a
push dword [ebx + 0x32c]
call fcn.0044bc40
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.0044e640
mov eax, edi
jmp 0x44b9c6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
add eax, 0xfffffffe
mov ecx, 1
cmp ecx, eax
sbb edi, edi
neg edi
inc edi
mov dword [ebp - 0x140], edi
mov dword [ebx + 0x32c], 0
push 0
call fcn.0048c5d0
add esp, 4
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.0044e640
mov eax, edi
jmp 0x44b9c6
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret 0x1c