Function at 0x4060e0
Capabilities:
Copy file
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40a55b
push eax
mov eax, 0x1660
mov dword fs:[0], esp
call fcn.0040a1c0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x749]
mov byte [esp + 0x748], bl
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x244], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x245]
mov byte [esp + 0x84c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x84d]
lea edx, [esp + 0x748]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x1680]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x18], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x19], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x748]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x12c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x74c]
push ecx
call dword [sym.imp.MSVCRT.dll__findfirst]
add esp, 8
mov esi, eax
mov byte [esp + 0x13], 1
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
jne 0x4061fb
xor al, al
jmp 0x406b0f
lea edx, [esp + 0x12c]
push edx
push esi
call dword [sym.imp.MSVCRT.dll__findnext]
add esp, 8
cmp eax, 0xffffffff
je 0x406ade
mov ebp, dword [esp + 0x1684]
lea edx, [esp + 0x28]
dec edx
mov dword [esp + 0x24], edx
jmp 0x40622c
mov edx, dword [esp + 0x24]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
lea esi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1680]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [edx + ecx], 0x5c
je 0x406282
mov byte [esp + ecx + 0x28], 0x5c
mov byte [esp + ecx + 0x29], bl
lea edi, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x244]
rep stosd dword es:[edi], eax
mov esi, 0x40d788
lea eax, [esp + 0x140]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4062f0
cmp cl, bl
je 0x4062ec
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4062f0
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4062cc
xor eax, eax
jmp 0x4062f5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x406abb
test byte [esp + 0x12c], 0x10
je 0x406331
cmp byte [esp + 0x13], bl
je 0x406ab7
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.004060e0
add esp, 8
test al, al
je 0x406ab7
mov byte [esp + 0x13], 1
jmp 0x406abb
mov esi, str.update.ini
lea eax, [esp + 0x140]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x406361
cmp cl, bl
je 0x40635d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x406361
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40633d
xor eax, eax
jmp 0x406366
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x406abb
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x349]
mov byte [esp + 0x348], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x140]
push eax
push ebp
call fcn.00405c90
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 8
lea esi, [esp + 0x348]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp edx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x4063d4
push edx
call fcn.0040a190
add esp, 4
lea ecx, [esp + 0x348]
push ecx
call fcn.00409d60
lea edi, [esp + 0x34c]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jle 0x406412
cmp byte [esp + ecx + 0x347], 0x5c
je 0x406412
mov byte [esp + ecx + 0x348], 0x5c
mov byte [esp + ecx + 0x349], bl
lea edi, [esp + 0x348]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x244]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x248]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x144]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x248]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x406a80
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xc71]
mov byte [esp + 0xc70], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or ecx, 0xffffffff
mov edi, 0x40d784
xor eax, eax
lea edx, [esp + 0xc70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0xc70]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x416d2c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xc70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40fa54
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xc70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x244]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xc70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d9e8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x35
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xc74]
and ecx, 3
push 0x40f9f0
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x416484]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 4
jne 0x40660e
lea edx, [esp + 0x244]
push ebx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40648c
lea ecx, [esp + 0x140]
lea edx, [esp + 0x244]
push ecx
push ebp
push edx
call fcn.00408de0
mov al, byte [esp + 0x1f]
add esp, 0xc
cmp al, bl
je 0x406ab7
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x406ab7
mov byte [esp + 0x13], 1
jmp 0x406abb
mov edi, dword [str.Filename]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xa
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x416818]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
mov dword [0x416818], eax
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__itoa]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x858]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0xe7c], bl
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xe7c]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x7f
lea edi, [esp + 0xe81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401d30
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0xe80]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x24], esi
mov esi, edi
mov edi, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push edx
call fcn.00401ba0
mov edi, dword [str.bootupdate.ini]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xe70]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x416818]
mov ecx, edx
and ecx, 3
cmp eax, 1
rep movsb byte es:[edi], byte [esi]
jne 0x406749
lea eax, [esp + 0xe70]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
lea ecx, [esp + 0xe70]
push ecx
lea ecx, [esp + 0xa50]
call fcn.00401e50
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1471]
mov byte [esp + 0x1470], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1071]
mov byte [esp + 0x1070], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x549]
mov byte [esp + 0x548], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.Name]
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x850]
push eax
push ecx
lea ecx, [esp + 0xa58]
mov dword [esp + 0x1684], ebx
call fcn.004028a0
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1271]
mov byte [esp + 0x1270], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x1680]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1270]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [str.Spath]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x84c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1270]
push ecx
push edx
push eax
lea ecx, [esp + 0xa58]
call fcn.004028a0
lea edi, [esp + 0x348]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1270]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1270]
mov edx, dword [str.Tpath]
push ecx
lea eax, [esp + 0x850]
push edx
push eax
lea ecx, [esp + 0xa58]
call fcn.004028a0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x548]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x548]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x547], 0x5c
je 0x4068da
mov byte [esp + ecx + 0x548], 0x5c
mov byte [esp + ecx + 0x549], bl
mov edi, dword [str.update.ini]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x548]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [str.Filename]
and ecx, 3
lea eax, [esp + 0x140]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [str.Operation]
push eax
push ecx
lea eax, [esp + 0x550]
push edx
push eax
call fcn.004094a0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x1480]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x24], esi
mov esi, edi
mov edi, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401ba0
mov edx, dword [str.runmode]
add esp, 0x14
lea ecx, [esp + 0x1470]
lea eax, [esp + 0x84c]
push ecx
push edx
push eax
lea ecx, [esp + 0xa58]
call fcn.004028a0
mov edx, dword [str.Param]
mov eax, dword [str.Filename]
lea ecx, [esp + 0x140]
push ecx
push edx
lea ecx, [esp + 0x550]
push eax
push ecx
call fcn.004094a0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x1080]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x24], esi
mov esi, edi
mov edi, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push edx
call fcn.00401ba0
lea ecx, [esp + 0x1084]
push ebp
push ecx
call fcn.00409bd0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0x1c
lea esi, [esp + 0x1070]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp edx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x406a2b
push edx
call fcn.0040a190
add esp, 4
mov edx, dword [str.Param]
lea ecx, [esp + 0x1070]
push ecx
lea eax, [esp + 0x850]
push edx
push eax
lea ecx, [esp + 0xa58]
call fcn.004028a0
push ebx
lea ecx, [esp + 0xa50]
call fcn.00402060
lea ecx, [esp + 0xa4c]
call fcn.00402000
lea ecx, [esp + 0xa4c]
mov dword [esp + 0x1678], 0xffffffff
call fcn.00401e90
jmp 0x406abb
lea ecx, [esp + 0x140]
lea edx, [esp + 0x244]
push ecx
push ebp
push edx
call fcn.00408de0
mov al, byte [esp + 0x1f]
add esp, 0xc
cmp al, bl
je 0x406ab7
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x406ab7
mov byte [esp + 0x13], 1
jmp 0x406abb
mov byte [esp + 0x13], bl
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x12c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__findnext]
add esp, 8
cmp eax, 0xffffffff
jne 0x406228
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.MSVCRT.dll__findclose]
mov eax, dword [0x416818]
add esp, 4
cmp eax, ebx
jne 0x406b0d
cmp byte [esp + 0x13], bl
je 0x406b0d
mov eax, dword [esp + 0x1680]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
sbb eax, eax
neg eax
jmp 0x406b0f
mov al, 1
mov ecx, dword [esp + 0x1670]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x166c
ret