Function at 0x412f34
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x202c
cmp dword [ebp + 8], 1
push ebx
push esi
push edi
jne 0x4130b6
xor ebx, ebx
cmp dword [0x41c6fc], ebx
mov byte [ebp + 0xb], 1
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], 6
mov dword [ebp - 0x14], ebx
jbe 0x413096
mov dword [ebp - 0xc], ebx
mov esi, 0x40e234
mov eax, dword [0x41c6f4]
mov ecx, dword [ebp - 0xc]
add ecx, eax
push 1
push ecx
call fcn.00412b24
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
pop ecx
mov byte [ebp - 0x15], al
mov dword [ebp - 8], ebx
jmp 0x412fb5
push ebx
push esi
call fcn.00411dcd
push ebx
push esi
call fcn.00412b24
push ebx
push esi
call fcn.00411dcd
add esp, 0x18
inc dword [ebp - 8]
cmp dword [ebp - 8], 8
jg 0x412fbd
push esi
call edi
cmp eax, 0xffffffff
jne 0x412f94
mov al, byte [ebp - 0x15]
and byte [ebp + 0xb], al
test al, al
jne 0x413073
push 0x419240
push 0x417a40
lea eax, [ebp - 0x82c]
push 0x40e22c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp byte [ebp - 1], 0
je 0x413017
call fcn.0040e83a
cmp byte [eax + 3], 0
jne 0x413013
push 4
push 0x417b40
lea eax, [ebp - 0x82c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 1], 0
cmp dword [ebp - 0x10], 6
jne 0x413073
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x41c6f4]
add ecx, eax
push ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
call fcn.004129dc
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
pop ecx
pop ecx
jbe 0x41306b
mov ecx, dword [ebp - 0x24]
lea edi, [ecx + eax*4 - 4]
mov dword [ebp - 8], eax
push 4
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [edi]
call fcn.00411c13
sub edi, 4
dec dword [ebp - 8]
pop ecx
jne 0x413050
lea ecx, [ebp - 0x28]
call fcn.004126eb
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x2000
cmp eax, dword [0x41c6fc]
jb 0x412f72
cmp byte [ebp + 0xb], 0
je 0x4134ba
call fcn.0040e83a
cmp byte [eax + 3], 0
jne 0x4134ba
push ebx
push 0x417d40
push 0x417c40
push ebx
jmp 0x4134b4
cmp dword [ebp + 8], 2
jne 0x413264
mov edi, 0x41b6d0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4130df
call fcn.0040e83a
cmp byte [eax + 3], 0
je 0x4134ba
call fcn.0040e83a
cmp byte [eax + 3], 0
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x102c]
je 0x413109
push dword [0x41c6d4]
push 0x40e148
push eax
call ebx
add esp, 0xc
jmp 0x41311a
push edi
push 0x41aea8
push 0x40e138
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x102c]
push eax
push dword [0x41c6f4]
call fcn.0041233c
test al, al
pop ecx
pop ecx
jne 0x413242
push 0x419340
push 0x418b40
lea eax, [ebp - 0x182c]
push 0x40e22c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
call fcn.0040e83a
xor esi, esi
cmp byte [eax + 3], 0
jne 0x413180
push 4
push 0x417b40
lea eax, [ebp - 0x182c]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4134ba
lea eax, [ebp - 0x28]
push eax
push dword [0x41c6f4]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
call fcn.004129dc
mov eax, dword [ebp - 0x1c]
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp + 8], eax
jbe 0x413235
mov eax, dword [ebp - 0x24]
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 - 0x10], eax
je 0x413224
cmp dword [ebp + 8], 1
je 0x4131fc
push dword [0x41c6f4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax*2]
push eax
push edi
push 0x41aea8
lea eax, [ebp - 0x82c]
push 0x40e218
push eax
call ebx
add esp, 0x14
jmp 0x413213
push edi
push 0x41aea8
lea eax, [ebp - 0x82c]
push 0x40e138
push eax
call ebx
add esp, 0x10
push 4
lea eax, [ebp - 0x82c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [esi]
call fcn.00411c13
dec dword [ebp + 8]
pop ecx
jne 0x4131ab
lea ecx, [ebp - 0x28]
call fcn.004126eb
jmp 0x4134ba
call fcn.0040e83a
cmp byte [eax + 3], 0
jne 0x4134ba
push 0
push 0x417d40
push 0x418a40
push 0
jmp 0x4134b4
cmp dword [ebp + 8], 3
jne 0x4134ba
push 0x41bed0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x41328c
call fcn.0040e83a
cmp byte [eax + 3], 0
je 0x4134ba
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 - 0x14], edi
jbe 0x41349d
xor esi, esi
mov eax, dword [0x41c6f4]
add eax, esi
lea ecx, [eax + 0x1000]
push ecx
add eax, 0x800
push eax
lea eax, [ebp - 0x182c]
push eax
call fcn.004115d8
add esp, 0xc
call fcn.0040e83a
cmp byte [eax + 3], 0
je 0x4132e8
mov eax, dword [0x41c6d4]
add eax, esi
mov dword [ebp - 0xc], eax
jmp 0x4132ef
mov dword [ebp - 0xc], 0x41bed0
lea eax, [ebp - 0x182c]
push eax
mov eax, dword [0x41c6f4]
push dword [ebp - 0xc]
add eax, esi
push eax
call fcn.00412121
and byte [ebp + 0xb], al
add esp, 0xc
test al, al
jne 0x41347f
push 0x419440
push 0x418d40
lea eax, [ebp - 0x202c]
push 0x40e22c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp byte [ebp - 1], 0
je 0x413360
call fcn.0040e83a
cmp byte [eax + 3], 0
jne 0x41335c
push 4
push 0x417b40
lea eax, [ebp - 0x202c]
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 0x41347f
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x41c6f4]
add eax, esi
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
call fcn.004129dc
mov eax, dword [ebp - 0x1c]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 8], eax
jbe 0x413477
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
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 - 0x2c], eax
je 0x413466
mov word [ebp - 0x102c], di
xor eax, eax
mov ecx, 0x1ff
lea edi, [ebp - 0x102a]
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 - 0x102c]
push eax
call fcn.004115d8
add esp, 0xc
cmp dword [ebp - 8], 1
je 0x413434
mov eax, dword [0x41c6f4]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x102c]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x82c]
push 0x40e218
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x413453
lea eax, [ebp - 0x102c]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x82c]
push 0x40e138
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 4
lea eax, [ebp - 0x82c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
push dword [ebx]
call fcn.00411c13
dec dword [ebp - 8]
pop ecx
jne 0x413397
lea ecx, [ebp - 0x28]
call fcn.004126eb
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add esi, 0x2000
cmp eax, dword [0x41c6fc]
jb 0x4132ae
cmp byte [ebp + 0xb], 0
je 0x4134ba
call fcn.0040e83a
cmp byte [eax + 3], 0
jne 0x4134ba
push edi
push 0x417d40
push 0x418c40
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
leave
ret