Function at 0x412db1
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2028
cmp dword [ebp + 8], 1
push ebx
push esi
push edi
jne 0x412eed
xor edi, edi
cmp dword [0x41c6fc], edi
mov byte [ebp + 0xb], 1
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], 6
mov dword [ebp - 0xc], edi
jbe 0x412ece
mov dword [ebp - 8], edi
mov eax, dword [0x41c6f4]
mov ecx, dword [ebp - 8]
add ecx, eax
push ecx
call fcn.00412ae6
and byte [ebp + 0xb], al
test al, al
pop ecx
jne 0x412eab
push 0x419240
push 0x417a40
lea eax, [ebp - 0x828]
push 0x40e2d8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp byte [ebp - 1], 0
je 0x412e52
call fcn.0040e8ce
cmp byte [eax + 3], 0
jne 0x412e4e
push 4
push 0x417b40
lea eax, [ebp - 0x828]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 1], 0
cmp dword [ebp - 0x10], 6
jne 0x412eab
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x41c6f4]
add ecx, eax
push ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
call fcn.004129c7
mov eax, dword [ebp - 0x14]
cmp eax, edi
pop ecx
pop ecx
jbe 0x412ea3
mov ecx, dword [ebp - 0x1c]
lea esi, [ecx + eax*4 - 4]
mov ebx, eax
push 4
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [esi]
call fcn.00411c99
sub esi, 4
dec ebx
pop ecx
jne 0x412e8a
lea ecx, [ebp - 0x20]
call fcn.004126d6
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], 0x2000
cmp eax, dword [0x41c6fc]
jb 0x412dea
cmp byte [ebp + 0xb], 0
je 0x4132f1
call fcn.0040e8ce
cmp byte [eax + 3], 0
jne 0x4132f1
push edi
push 0x417d40
push 0x417c40
jmp 0x4132ea
cmp dword [ebp + 8], 2
jne 0x41309b
mov edi, 0x41b6d0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x412f16
call fcn.0040e8ce
cmp byte [eax + 3], 0
je 0x4132f1
call fcn.0040e8ce
cmp byte [eax + 3], 0
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x1028]
je 0x412f40
push dword [0x41c6d4]
push 0x40e218
push eax
call ebx
add esp, 0xc
jmp 0x412f51
push edi
push 0x41aea8
push 0x40e208
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x1028]
push eax
push dword [0x41c6f4]
call fcn.00412327
test al, al
pop ecx
pop ecx
jne 0x413079
push 0x419340
push 0x418b40
lea eax, [ebp - 0x1828]
push 0x40e2d8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
call fcn.0040e8ce
xor esi, esi
cmp byte [eax + 3], 0
jne 0x412fb7
push 4
push 0x417b40
lea eax, [ebp - 0x1828]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4132f1
lea eax, [ebp - 0x20]
push eax
push dword [0x41c6f4]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
call fcn.004129c7
mov eax, dword [ebp - 0x14]
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp + 8], eax
jbe 0x41306c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push dword [0x41c6f4]
lea esi, [eax + ecx*4 - 4]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x41305b
cmp dword [ebp + 8], 1
je 0x413033
push dword [0x41c6f4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + eax*2]
push eax
push edi
push 0x41aea8
lea eax, [ebp - 0x828]
push 0x40e2c4
push eax
call ebx
add esp, 0x14
jmp 0x41304a
push edi
push 0x41aea8
lea eax, [ebp - 0x828]
push 0x40e208
push eax
call ebx
add esp, 0x10
push 4
lea eax, [ebp - 0x828]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [esi]
call fcn.00411c99
dec dword [ebp + 8]
pop ecx
jne 0x412fe2
lea ecx, [ebp - 0x20]
call fcn.004126d6
jmp 0x4132f1
call fcn.0040e8ce
cmp byte [eax + 3], 0
jne 0x4132f1
push 0
push 0x417d40
push 0x418a40
push 0
jmp 0x4132eb
cmp dword [ebp + 8], 3
jne 0x4132f1
push 0x41bed0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4130c3
call fcn.0040e8ce
cmp byte [eax + 3], 0
je 0x4132f1
xor edi, edi
cmp dword [0x41c6fc], edi
mov byte [ebp + 0xb], 1
mov byte [ebp - 1], 1
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x10], edi
jbe 0x4132d4
xor esi, esi
mov eax, dword [0x41c6f4]
add eax, esi
lea ecx, [eax + 0x1000]
push ecx
add eax, 0x800
push eax
lea eax, [ebp - 0x1828]
push eax
call fcn.0041165e
add esp, 0xc
call fcn.0040e8ce
cmp byte [eax + 3], 0
je 0x41311f
mov eax, dword [0x41c6d4]
add eax, esi
mov dword [ebp - 8], eax
jmp 0x413126
mov dword [ebp - 8], 0x41bed0
lea eax, [ebp - 0x1828]
push eax
mov eax, dword [0x41c6f4]
push dword [ebp - 8]
add eax, esi
push eax
call fcn.0041210c
and byte [ebp + 0xb], al
add esp, 0xc
test al, al
jne 0x4132b6
push 0x419440
push 0x418d40
lea eax, [ebp - 0x2028]
push 0x40e2d8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp byte [ebp - 1], 0
je 0x413197
call fcn.0040e8ce
cmp byte [eax + 3], 0
jne 0x413193
push 4
push 0x417b40
lea eax, [ebp - 0x2028]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x24], eax
mov byte [ebp - 1], 0
cmp dword [ebp - 0x24], 6
jne 0x4132b6
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x41c6f4]
add eax, esi
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
call fcn.004129c7
mov eax, dword [ebp - 0x14]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
jbe 0x4132ae
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
lea ebx, [eax + ecx*4 - 4]
mov eax, dword [0x41c6f4]
add eax, esi
push eax
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, edi
mov dword [ebp - 0x28], eax
je 0x41329d
mov word [ebp - 0x1028], di
xor eax, eax
mov ecx, 0x1ff
lea edi, [ebp - 0x1026]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x41c6f4]
lea ecx, [esi + eax + 0x1000]
push ecx
lea eax, [esi + eax + 0x800]
push eax
lea eax, [ebp - 0x1028]
push eax
call fcn.0041165e
add esp, 0xc
cmp dword [ebp - 0xc], 1
je 0x41326b
mov eax, dword [0x41c6f4]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x28]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x1028]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x828]
push 0x40e2c4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x41328a
lea eax, [ebp - 0x1028]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x828]
push 0x40e208
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 4
lea eax, [ebp - 0x828]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
push dword [ebx]
call fcn.00411c99
dec dword [ebp - 0xc]
pop ecx
jne 0x4131ce
lea ecx, [ebp - 0x20]
call fcn.004126d6
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add esi, 0x2000
cmp eax, dword [0x41c6fc]
jb 0x4130e5
cmp byte [ebp + 0xb], 0
je 0x4132f1
call fcn.0040e8ce
cmp byte [eax + 3], 0
jne 0x4132f1
push edi
push 0x417d40
push 0x418c40
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
leave
ret