Function at 0x411a30
Capabilities:
Move file

Disassembly:
sub esp, 0xd70
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0xd6c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xd7c]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x179]
push ebx
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x180], bl
call fcn.0044cf00
push 0x3ff
lea ecx, [esp + 0x985]
push ebx
push ecx
mov byte [esp + 0x98c], bl
call fcn.0044cf00
push 0x3ff
lea edx, [esp + 0x591]
push ebx
push edx
mov byte [esp + 0x598], bl
call fcn.0044cf00
push 0x140
lea eax, [esp + 0x5c]
push ebx
push eax
call fcn.0044cf00
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x1a4]
add esp, 0x30
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], ax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 3
mov dword [esp + 0x20], ebx
mov word [esp + 0x24], 0x414
mov eax, ebp
sub ecx, ebp
lea ecx, [ecx]
mov dl, byte [eax]
mov byte [ecx + eax], dl
add eax, 1
cmp dl, bl
jne 0x411b00
lea eax, [esp + 0x174]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x411b16
mov ecx, dword [str..]
mov dl, byte [0x46b3ec]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x178]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0x411d39
push esi
push edi
jmp 0x411b60
mov edi, 0x46b3e4
lea esi, [esp + 0x68]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x411cd5
mov edi, 0x46b3e0
lea esi, [esp + 0x68]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x411cd5
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x411b97
sub eax, edx
cmp byte [esp + eax + 0x67], 0x2e
push 0x400
push ebx
jne 0x411c64
lea ecx, [esp + 0x984]
push ecx
call fcn.0044cf00
push 0x400
lea edx, [esp + 0x58c]
push ebx
push edx
call fcn.0044cf00
lea eax, [esp + 0x80]
push eax
push ebp
lea ecx, [esp + 0x99c]
push str.__s_s
push ecx
call fcn.0044e648
push str.KATRename
lea edx, [esp + 0x94]
push edx
push ebp
lea eax, [esp + 0x5b0]
push str.__s_s_s
push eax
call fcn.0044e648
add esp, 0x3c
lea ecx, [esp + 0x57c]
push ecx
lea edx, [esp + 0x980]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x411d37
push 0x400
lea eax, [esp + 0x180]
push ebx
push eax
call fcn.0044cf00
push str.KATRename
lea ecx, [esp + 0x78]
push ecx
push ebp
lea edx, [esp + 0x194]
push str._s_s_s
push edx
call fcn.0044e648
add esp, 0x20
jmp 0x411c8c
lea eax, [esp + 0x184]
push eax
call fcn.0044cf00
lea ecx, [esp + 0x74]
push ecx
push ebp
lea edx, [esp + 0x190]
push str._s_s
push edx
call fcn.0044e648
add esp, 0x1c
test byte [esp + 0x3c], 0x10
je 0x411ca6
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x17c]
push eax
call fcn.00411a30
jmp 0x411cc4
push 0x20
lea ecx, [esp + 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x17c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x411d37
push 0x140
push ebx
lea eax, [esp + 0x44]
push eax
jmp 0x411ce0
push 0x140
push ebx
lea ecx, [esp + 0x44]
push ecx
call fcn.0044cf00
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x411b60
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x411d13
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x10], ebx
push 0x20
push ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x411d37
mov dword [esp + 0x14], 1
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebp
cmp eax, ebx
pop ebx
je 0x411d4a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0xd6c]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.0044ce74
add esp, 0xd70
ret 4