Function at 0x46de80
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46e132
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x50]
call fcn.00405024
mov eax, ebx
call fcn.0046d7c0
xor eax, eax
mov dword [ebp - 0x10], eax
cmp byte [ebx + 0xc4], 0
je 0x46e102
cmp byte [ebx + 0xc6], 3
jne 0x46df33
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0040a094
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x46def7
sub esi, 4
mov esi, dword [esi]
mov edi, 0x46e14c
test edi, edi
je 0x46df05
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, 0x46e14c
call fcn.00405450
push eax
push esi
mov eax, dword [ebp - 0x1c]
call fcn.00405450
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
xor al, 1
jmp 0x46df35
xor eax, eax
test al, al
je 0x46df3d
mov al, 1
jmp 0x46df52
cmp byte [ebx + 0xc6], 2
jne 0x46df4c
cmp dword [ebx + 0x28], 0
je 0x46df50
xor eax, eax
jmp 0x46df52
mov al, 1
test al, al
je 0x46e102
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x2c]
call fcn.00405024
mov eax, dword [ebp - 4]
call fcn.00409cb0
test al, al
je 0x46e09a
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea ecx, [ebp - 0x28]
mov edx, 0x2b1f
mov eax, dword [ebx + 0x10]
call fcn.0046b784
movzx eax, byte [0x46e154]
or al, byte [ebx + 0x79]
mov byte [ebx + 0x79], al
mov esi, 6
mov eax, dword [ebx + 0x74]
test byte [eax + 4], 1
jne 0x46e053
mov eax, dword [eax + 0x38]
mov edx, dword [eax + 0x128]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0x12c]
mov dword [ebp - 0x14], edx
cmp word [ebp - 0x16], 0
je 0x46e025
mov byte [ebx + 0x78], 1
mov eax, dword [ebp - 4]
push eax
movzx eax, byte [ebx + 0x79]
push eax
lea eax, [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
cmp byte [ebx + 0x78], 0
jne 0x46e011
mov esi, dword [ebx + 0x74]
movzx eax, byte [esi + 4]
or al, byte [0x46e158]
mov byte [esi + 4], al
mov byte [ebx + 0x78], 1
cmp byte [ebx + 0x78], 1
jne 0x46e01e
mov esi, 6
jmp 0x46e053
mov esi, 7
jmp 0x46e053
push 0x102716
movzx eax, word [0x46e15c]
push eax
lea ecx, [ebp - 0x2c]
mov edx, 0x2b5e
mov esi, dword [ebx + 0x10]
mov eax, esi
call fcn.0046b7fc
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0046ba68
mov esi, eax
test esi, esi
jne 0x46e066
xor ecx, ecx
mov edx, 0x2afe
mov eax, dword [ebx + 0x10]
call fcn.0046b3cc
cmp esi, 7
jne 0x46e087
push 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea ecx, [ebp - 0x28]
mov edx, 0x2b2a
mov eax, dword [ebx + 0x10]
call fcn.0046ad84
cmp esi, 6
jne 0x46e09a
mov eax, dword [ebp - 4]
call fcn.00405450
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 8]
call fcn.00409cb0
test al, al
je 0x46e102
mov eax, dword [ebp - 4]
call fcn.00405450
push eax
mov eax, dword [ebp - 8]
call fcn.00405450
push eax
call sub.kernel32.dll_MoveFileA
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, dword [ebx + 0x10]
cmp byte [esi + 0x80], 1
jb 0x46e102
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
lea edx, [ebp - 0x40]
mov ecx, 1
mov eax, 0x46e168
call fcn.0040b078
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.0046a980
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e139
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404fb0
lea eax, [ebp - 0x20]
call fcn.00404f8c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404fb0
ret