Function at 0x410564
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
push 4
pop ebx
mov byte [ebp - 3], 0
mov byte [ebp - 2], 0
mov byte [ebp - 4], 0
jmp 0x41063f
cmp word [eax + 2], 0x2d
jne 0x41064c
push 0x10
lea eax, [ebp + 8]
push eax
push str.__simpleprogress
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x4105ac
mov ebx, 0x100
jmp 0x41063f
push 0xa
lea eax, [ebp + 8]
push eax
push str.__progress
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x4105c7
xor ebx, ebx
jmp 0x41063f
push 6
lea eax, [ebp + 8]
push eax
push str.__file
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x4105e4
mov byte [ebp - 3], 1
jmp 0x41063f
push 3
lea eax, [ebp + 8]
push eax
push 0x477ce0
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x410601
mov byte [ebp - 2], 1
jmp 0x41063f
push 7
lea eax, [ebp + 8]
push eax
push str.__force
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x41061e
mov byte [ebp - 4], 1
jmp 0x41063f
push 2
lea eax, [ebp + 8]
push eax
push 0x475ee4
call fcn.0042c9b5
add esp, 0xc
test al, al
jne 0x41064c
lea eax, [ebp + 8]
push eax
call fcn.00403977
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x410580
lea ecx, [ebp + 8]
call fcn.0040e58b
mov eax, dword [ebp + 8]
xor edi, edi
cmp word [eax], di
jne 0x410668
mov eax, 0x80070057
jmp 0x410913
push esi
push eax
call fcn.0046176a
mov esi, eax
pop ecx
inc esi
lea eax, [esi + esi + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0042465d
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0040391f
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov word [eax + esi*2], di
add esp, 0xc
mov dword [ebp - 0x54], edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea ecx, [ebp + 8]
stosw word es:[edi], ax
call fcn.0040e58b
mov esi, dword [ebp + 8]
or bx, 0x610
mov word [ebp - 0x44], bx
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], 3
mov dword [ebp - 8], ebx
mov byte [ebp - 1], bl
mov edi, esi
call fcn.0042460b
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0042460b
lea eax, [ebp - 0x28]
push 0xa
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], eax
call fcn.00424699
push 0xa
lea ecx, [ebp - 0x34]
call fcn.00424699
jmp 0x4107ce
cmp byte [ebp - 2], 0
je 0x41075a
cmp ax, 0x3b
jne 0x41075a
mov word [esi], bx
inc esi
inc esi
cmp word [edi], bx
mov dword [ebp - 0xc], esi
je 0x410742
cmp byte [ebp - 1], 0
jne 0x410734
cmp byte [ebp - 3], 0
je 0x410734
mov al, 1
jmp 0x410736
xor al, al
push eax
push edi
mov edi, dword [ebp - 0x10]
call fcn.00410326
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0040e58b
cmp byte [ebp - 1], 0
mov esi, dword [ebp - 0xc]
mov edi, esi
je 0x4107cc
inc dword [ebp - 8]
jmp 0x4107cc
cmp ax, 0x3e
jne 0x4107cc
mov ax, word [esi - 2]
cmp ax, 0x3d
jne 0x410773
mov dword [ebp - 0x50], 2
jmp 0x410794
cmp ax, 0x2d
jne 0x410782
mov dword [ebp - 0x50], 1
jmp 0x410794
lea eax, [esi + 2]
cmp word [eax], 0x3e
jne 0x410794
mov esi, eax
mov dword [ebp - 0x50], 4
lea eax, [esi + 2]
mov dword [ebp - 0x48], eax
mov word [esi - 2], bx
mov word [esi], bx
cmp word [edi], bx
mov dword [ebp - 0xc], eax
je 0x4107b5
push ebx
push edi
mov edi, dword [ebp - 0x10]
call fcn.00410326
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0040e58b
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x34]
mov edi, esi
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], eax
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x41070b
cmp word [edi], bx
je 0x4107f4
push ebx
push edi
mov edi, dword [ebp - 0x10]
call fcn.00410326
cmp byte [ebp - 1], 0
pop ecx
pop ecx
je 0x4107f4
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov word [eax + ecx*2], bx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov word [ecx + eax*2], bx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
jle 0x410819
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov edi, 0x48b5d4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00402e81
pop ecx
push ebx
mov byte [ebp - 0x18], al
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [ebp - 4], 0
je 0x410859
cmp dword [ebp - 0x50], 3
jne 0x410859
push 1
push dword [ebp - 0x28]
call fcn.004103cc
pop ecx
pop ecx
jmp 0x4108e0
cmp dword [ebp - 0x50], 4
jne 0x4108cc
push dword [ebp - 0x4c]
lea ecx, [ebp - 0xc]
call fcn.0042a183
push dword [ebp - 0xc]
call fcn.0042783d
cmp eax, ebx
pop ecx
jne 0x41087c
mov eax, dword [ebp - 0xc]
jmp 0x41087e
inc eax
inc eax
mov word [eax], bx
push dword [ebp - 0x48]
call fcn.0042783d
cmp eax, ebx
pop ecx
jne 0x410893
mov eax, dword [ebp - 0x48]
jmp 0x410895
inc eax
inc eax
push eax
lea ecx, [ebp - 0xc]
call fcn.004246c0
push dword [ebp - 0xc]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, 1
jne 0x4108b3
xor esi, esi
jmp 0x4108c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x4108c0
xor eax, eax
inc eax
mov esi, eax
lea ecx, [ebp - 0xc]
call fcn.00424686
jmp 0x4108e2
cmp dword [ebp - 8], 2
jl 0x4108d6
or byte [ebp - 0x44], 1
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
cmp byte [ebp - 0x18], 0
je 0x4108f1
push dword [ebp - 0x1c]
call fcn.00402e92
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x34]
call fcn.00424686
lea ecx, [ebp - 0x28]
call fcn.00424686
lea ecx, [ebp - 0x14]
call fcn.00424686
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret