Function at 0x419670
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e0f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
push esi
mov dword [ebp - 0x1c], ebx
call fcn.00419c30
add esp, 4
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebx + 0x14]
push eax
push ecx
call fcn.0044f096
lea edx, [ebx + 0x48]
push 0
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004243f6
push esi
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.004195a0
mov esi, eax
mov dword [ebp - 0x20], esi
cmp byte [esi + 0x118], 1
jne 0x4197b5
mov eax, dword [esi + 0x120]
test eax, eax
jne 0x4197f9
push 0x10
call fcn.0044f2f1
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x41970f
mov ecx, eax
call fcn.00452e59
jmp 0x419711
xor eax, eax
mov dword [esi + 0x120], eax
lea eax, [ebp - 0x14]
push str..tmp
lea ecx, [ebp - 0x18]
push eax
push ecx
mov byte [ebp - 4], 1
mov edi, 0x42
call fcn.0044f096
mov eax, dword [eax]
push 0
push eax
call fcn.0042ce2d
add esp, 8
cmp eax, 0xffffffff
lea ecx, [ebp - 0x18]
sete byte [ebp + 0xb]
call fcn.0044ee01
mov al, byte [ebp + 0xb]
test al, al
je 0x41975a
mov edi, 0x1042
lea edx, [ebp - 0x14]
push str..tmp
lea eax, [ebp - 0x18]
push edx
push eax
call fcn.0044f096
mov ecx, dword [esi + 0x120]
mov eax, dword [eax]
push 0
push edi
mov edx, dword [ecx]
push eax
mov byte [ebp - 4], 3
call dword [edx + 0x20]
test eax, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
sete byte [ebp + 0xb]
call fcn.0044ee01
mov al, byte [ebp + 0xb]
mov ecx, dword [esi + 0x120]
test al, al
je 0x4197ed
test ecx, ecx
je 0x4197ab
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x120], 0
lea ecx, [ebp - 0x2c]
call fcn.00424432
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00424432
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ee01
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x114]
mov edx, dword [ecx]
push eax
call dword [edx + 0x2c]
mov ecx, dword [esi + 0x120]
mov eax, dword [esi + 0x110]
push 0
push eax
mov edx, dword [ecx]
mov byte [ebp - 4], 4
call dword [edx + 0x28]
jmp 0x419834
mov edi, dword [ebp + 0xc]
mov edx, dword [esi + 0x110]
mov ecx, dword [ebp + 0x14]
sub edi, edx
add edi, ecx
mov ecx, ebx
push edi
push 3
mov dword [ebp - 4], 1
call fcn.0041a3d0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x120]
sub ecx, edx
mov edx, dword [esi + 0x110]
push edi
mov eax, dword [eax]
add ecx, edx
push ecx
mov ecx, dword [esi + 0x120]
call dword [eax + 0x38]
mov edx, dword [esi + 0x110]
mov ecx, dword [esi + 0x114]
add edx, edi
mov eax, edx
mov dword [esi + 0x110], edx
cmp eax, ecx
jne 0x419986
push esi
mov ecx, ebx
call fcn.00419bb0
mov word [ebx + 0x1c], 9
mov ecx, dword [esi + 0x120]
mov edi, eax
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov ecx, dword [esi + 0x120]
test ecx, ecx
je 0x4198c2
mov eax, dword [ecx]
push 1
call dword [eax + 4]
test edi, edi
mov dword [esi + 0x120], 0
je 0x4198d8
mov eax, dword [esi + 0x114]
jmp 0x4198da
xor eax, eax
test edi, edi
mov dword [esi + 0x110], eax
je 0x419945
mov ecx, dword [ebp - 0x14]
push 0
push ecx
call fcn.0042ce2d
add esp, 8
cmp eax, 0xffffffff
je 0x419901
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [ebp - 0x14]
push str..tmp
lea ecx, [ebp + 0xc]
push eax
push ecx
call fcn.0044f096
mov edx, dword [ebp - 0x14]
mov eax, dword [eax]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
lea ecx, [ebp + 0xc]
call fcn.0044ee01
push esi
push 4
mov ecx, ebx
mov byte [esi + 0x118], 2
call fcn.0041a3d0
mov eax, dword [ebx + 0x20]
push eax
lea ecx, [eax + 1]
mov dword [ebx + 0x20], ecx
jmp 0x41997f
lea edx, [ebp - 0x14]
push str..tmp
lea eax, [ebp + 0xc]
push edx
push eax
call fcn.0044f096
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [ebp + 0xc]
call fcn.0044ee01
mov ecx, dword [esi + 0x114]
neg ecx
push ecx
push 3
mov ecx, ebx
call fcn.0041a3d0
mov edx, dword [ebx + 0x20]
dec edx
push edx
mov ecx, ebx
call fcn.00419090
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00424432
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ee01
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10