Function at 0x443960
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x44f570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebp
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x14], esi
mov ebp, dword [edi + 4]
test ebp, ebp
je 0x443c76
mov ecx, dword [edi + 8]
mov eax, 0x66666667
sub ecx, ebp
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x14]
cmp eax, edx
jae 0x443c76
lea ecx, [esi + ebp + 0x18]
lea edx, [esi + ebp + 0x10]
push ecx
push edx
call fcn.00412060
add esp, 8
test eax, eax
jne 0x443b81
mov ebp, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
call fcn.00412700
add esp, 4
push 0x463600
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x3c], 0
call fcn.00409a80
lea edx, [esi + ebp + 4]
mov byte [esp + 0x30], 1
push edx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00414ef0
mov eax, dword [esp + 0x18]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x443a43
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x443a49
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.0044737a
add esp, 4
jmp 0x443a49
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x463294]
mov byte [esp + 0x30], 3
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x443a79
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x443a79
mov edx, dword [esp + 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.0044737a
add esp, 4
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040f210
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x3c]
add esp, 4
mov eax, dword [esi + eax + 0x10]
push 3
push edx
push eax
call ebx
test eax, eax
jne 0x443af2
mov eax, dword [esp + 0x38]
mov edx, dword [0x463294]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x443c65
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x443c65
mov edx, dword [esp + 0x38]
add edx, 0xfffffff4
push edx
call fcn.0044737a
mov ecx, dword [esp + 0x18]
add esp, 4
inc ecx
add esi, 0x28
mov dword [esp + 0x14], ecx
jmp 0x44398c
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x38]
lea ebp, [esi + eax + 0x10]
mov eax, dword [esi + eax + 0x10]
cmp eax, ecx
je 0x443b4e
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x443b19
mov edx, dword [0x463294]
add eax, 0xfffffff4
cmp eax, edx
jne 0x443b20
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x443b2e
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, ebp
call fcn.00404f60
jmp 0x443b4a
mov ecx, ebp
call fcn.00402f00
mov ecx, dword [esp + 0x38]
mov dword [ebp], ecx
mov edx, dword [esp + 0x38]
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x38]
mov edx, dword [0x463294]
lea eax, [ecx - 0xc]
cmp eax, edx
mov dword [esp + 0x30], 0xffffffff
je 0x443b81
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x443b81
mov ecx, dword [esp + 0x38]
lea eax, [ecx - 0xc]
push eax
call fcn.0044737a
add esp, 4
mov ebp, dword [edi + 4]
lea edx, [esp + 0x24]
push edx
call fcn.00412780
add esp, 4
push 0x463600
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x38], 5
push eax
call fcn.00409a80
lea ecx, [esi + ebp + 4]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x3c], 6
call fcn.00414ef0
mov eax, dword [esp + 0x20]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x443bed
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x443bed
mov edx, dword [esp + 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.0044737a
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 8
call fcn.0043c2e0
mov eax, dword [esp + 0x10]
push eax
call fcn.0040f210
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x10]
push 3
push edx
mov eax, dword [esi + eax + 0x18]
push eax
call ebx
mov eax, dword [edi + 4]
mov eax, dword [esi + eax + 0x18]
push eax
call fcn.0040f210
mov eax, dword [edi + 4]
add esp, 4
mov ecx, dword [esi + eax + 0x18]
mov eax, dword [esi + eax + 0x10]
push 1
push ecx
push eax
call ebx
test eax, eax
je 0x443c54
mov eax, dword [edi + 4]
mov dword [esi + eax + 0x1c], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.0043c2e0
mov ecx, dword [esp + 0x14]
inc ecx
add esi, 0x28
mov dword [esp + 0x14], ecx
jmp 0x44398c
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4