Function at 0x40a250
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x264
mov ebx, edx
mov edi, ecx
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [edx + 4]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
xor esi, esi
test eax, eax
jne 0x40a6c2
mov dword [ebp - 0x264], ebx
movaps xmm0, xmmword [0x42b450]
lea ebx, [ebp - 0x234]
movups xmmword [ebx], xmm0
xor eax, eax
mov dword [ebx + 0x10], eax
mov ecx, ebx
mov edx, edi
push eax
call fcn.00401d10
add esp, 4
mov ebx, dword [ebx + 4]
cmp ebx, 0xffffffff
je 0x40a556
mov eax, ebx
and eax, 0x10
je 0x40a556
mov eax, dword [ebp + 8]
add eax, 0x80
push eax
mov esi, dword [ebp - 0x264]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40a5f3
mov dword [ebp - 0x260], edi
lea ecx, [ebp - 0x248]
movaps xmm0, xmmword [0x42b450]
movups xmmword [ecx], xmm0
xor edi, edi
mov dword [ecx + 0x10], edi
mov edx, esi
push edi
call fcn.00401d10
add esp, 4
mov eax, 0x20a
push eax
call fcn.0040cf57
add esp, 4
mov esi, eax
add eax, 2
mov ecx, 0x208
push ecx
push edi
push eax
call fcn.0040f9d0
add esp, 0xc
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x250], edi
mov word [esi], di
mov eax, 0x20a
push eax
call fcn.0040cf57
add esp, 4
mov esi, eax
add eax, 2
mov ecx, 0x208
push ecx
push edi
push eax
call fcn.0040f9d0
add esp, 0xc
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], edi
lea eax, [ebp - 0x248]
mov ecx, dword [eax + 8]
cmp dword [ebp - 0x22c], 0xffffffff
mov word [esi], di
mov esi, 0x80004005
mov dword [ebp - 0x270], ecx
je 0x40a60c
cmp ecx, 0xffffffff
mov edi, dword [ebp - 0x260]
je 0x40a612
mov eax, dword [ebp - 0x244]
cmp eax, 0xffffffff
je 0x40a612
mov ecx, eax
and ecx, 0x10
je 0x40a612
bt eax, 0xa
jb 0x40a612
mov eax, dword [ebp - 0x248]
dec eax
cmp eax, 2
jb 0x40a612
xor esi, esi
bt ebx, 0xa
jb 0x40a612
mov eax, dword [ebp - 0x234]
dec eax
cmp eax, 2
jb 0x40a612
lea ebx, [ebp - 0x220]
mov ecx, ebx
push dword [edi + 4]
call fcn.00426be0
call fcn.0040d386
mov dword [eax], 0
mov esi, ebx
push ebx
call fcn.00426c40
add esp, 4
test eax, eax
je 0x40a6d9
mov ebx, eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x25c], 0
push 0x42e1e2
push ebx
call fcn.00416097
add esp, 8
test eax, eax
je 0x40a47b
push 0x42e1e0
push ebx
call fcn.00416097
add esp, 8
test eax, eax
je 0x40a47b
cmp dword [ebp - 0x26c], 0
je 0x40a48f
push dword [ebp - 0x268]
push ebx
call fcn.00416097
add esp, 8
test eax, eax
jne 0x40a48f
push esi
call fcn.00426c40
add esp, 4
mov ebx, eax
test eax, eax
jne 0x40a43b
jmp 0x40a6e3
push ebx
push dword [edi + 4]
push 0x42dcc6
push 0x105
lea eax, [ebp - 0x250]
push eax
call fcn.00426a50
add esp, 0x14
cmp dword [ebp - 0x250], 0
jne 0x40a4cd
mov eax, dword [ebp - 0x25c]
test eax, eax
mov ecx, 0x8007006f
cmovns eax, ecx
mov dword [ebp - 0x25c], eax
jmp 0x40a47b
push ebx
mov eax, dword [ebp - 0x264]
push dword [eax + 4]
push 0x42dcc6
push 0x105
lea eax, [ebp - 0x258]
push eax
call fcn.00426a50
add esp, 0x14
cmp dword [ebp - 0x258], 0
je 0x40a535
lea ecx, [ebp - 0x250]
lea edx, [ebp - 0x258]
push dword [ebp + 8]
call fcn.0040a250
add esp, 4
mov edx, dword [ebp - 0x25c]
test edx, edx
mov ecx, eax
cmovs ecx, edx
test eax, eax
cmovs edx, ecx
mov dword [ebp - 0x25c], edx
call fcn.0040d386
mov dword [eax], 0
jmp 0x40a54b
mov eax, dword [ebp - 0x25c]
test eax, eax
mov ecx, 0x8007006f
cmovns eax, ecx
mov dword [ebp - 0x25c], eax
mov edi, dword [ebp - 0x260]
jmp 0x40a47b
mov eax, dword [ebp - 0x22c]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x40a56b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
setne al
xor esi, esi
mov dword [ebp - 0x22c], 0xffffffff
cmp ebx, 0xffffffff
je 0x40a5c5
mov ecx, dword [ebp - 0x234]
cmp ecx, 2
je 0x40a5c5
shr ebx, 0xa
and bl, al
jne 0x40a5c5
cmp ecx, 1
je 0x40a5c5
push 1
mov eax, dword [ebp - 0x264]
push dword [eax + 4]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40a5c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a69a
push 4
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test esi, esi
js 0x40a69a
test eax, eax
jne 0x40a69a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40a69a
mov edi, dword [ebp - 0x260]
lea edx, [ebp - 0x234]
mov ecx, edi
call fcn.0040a170
test eax, eax
jns 0x40a64c
push 4
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test esi, esi
js 0x40a64c
test eax, eax
jne 0x40a64c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x40a65f
push eax
call fcn.0040d268
add esp, 4
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x40a672
push eax
call fcn.0040d268
add esp, 4
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x40a685
push eax
call fcn.0040d268
add esp, 4
mov ecx, dword [ebp - 0x270]
lea eax, [ecx + 1]
cmp eax, 2
jb 0x40a69a
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40a6ad
push eax
call fcn.0040d268
add esp, 4
mov eax, dword [ebp - 0x22c]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x40a6c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dac1
mov eax, esi
add esp, 0x264
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x25c], 0
call fcn.0040d386
cmp dword [eax], 0
mov esi, 0x80004005
mov eax, dword [ebp - 0x25c]
cmove esi, eax
test eax, eax
cmovs esi, eax
mov eax, dword [ebp - 0x220]
cmp eax, 0xffffffff
je 0x40a612
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40a612