Function at 0x408cc0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eea1
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x456014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x4c]
push esi
lea ecx, [ebp - 0x230]
call fcn.004047a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00427a0b
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408d45
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403270
xor eax, eax
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
call fcn.00414290
mov ecx, dword [ebp - 0x250]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x409023
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push ecx
cmovae eax, dword [ebp - 0x260]
push eax
push 1
push 0x450408
push ecx
push dword [ebp - 0x264]
lea ecx, [ebp - 0x27c]
call fcn.0040d950
mov byte [ebp - 4], 2
lea eax, [ebp - 0x27c]
cmp dword [ebp - 0x268], 8
lea ecx, [ebp - 0x230]
push dword [ebp - 0x26c]
cmovae eax, dword [ebp - 0x27c]
push eax
call fcn.00401fa0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x268]
cmp ecx, 8
jb 0x408e50
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408e46
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409028
push ecx
push edx
call fcn.0041cdfe
add esp, 8
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00414600
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x230]
call fcn.00414430
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x408f2e
push 0
mov ecx, esi
call fcn.00416d40
add esp, 4
test eax, eax
jne 0x408f2e
cmp dword [esi + 0x10], eax
je 0x408f2e
cmp dword [ebp - 0x220], eax
je 0x408f2e
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
cmp dword [esi + 0x14], 8
jb 0x408ef2
mov esi, dword [esi]
push eax
push esi
call fcn.00427d54
add esp, 8
test eax, eax
jne 0x408f2e
lea ecx, [edi + 0xd4]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x408f2a
cmp dword [ebp - 0x21c], 8
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00403270
mov bl, 1
jmp 0x408f30
xor bl, bl
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x408f70
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408f66
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409028
push ecx
push edx
call fcn.0041cdfe
add esp, 8
mov ecx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp ecx, 8
jb 0x408fc9
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408fbf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409028
push ecx
push edx
call fcn.0041cdfe
add esp, 8
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x409005
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408ffb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409028
push ecx
push edx
call fcn.0041cdfe
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cdc0
mov esp, ebp
pop ebp
ret
call fcn.004012b0
call fcn.0042200f
int3