Function at 0x406aa0
Capabilities:
Move file

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x2d8
or ecx, 0xffffffff
xor eax, eax
push ebx
push esi
push edi
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1b8]
mov esi, ecx
mov ecx, 0x4b
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x154]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
jne 0x406af4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x2d8
ret
lea eax, [esi - 1]
mov ebx, esi
test eax, eax
jl 0x406b13
mov cl, byte [eax + edx]
cmp cl, 0x5c
je 0x406b0f
cmp cl, 0x3a
je 0x406b0f
mov ebx, eax
dec eax
jns 0x406afd
cmp ebx, esi
jne 0x406b7b
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x1b8]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x154]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
cmp byte [esi + edx - 1], 0x5c
jne 0x406b58
mov ecx, ebx
mov esi, edx
lea edi, [esp + 0x1b8]
mov eax, ecx
jmp 0x406bed
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x154]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x406bf4
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x1b8]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x154]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x8c]
test ebx, ebx
rep stosd dword es:[edi], eax
jle 0x406bc4
mov ecx, ebx
mov esi, edx
mov eax, ecx
lea edi, [esp + 0x1b8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x154]
rep stosd dword es:[edi], eax
lea edi, [ebx + edx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x154]
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x154]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 8
jg 0x406cc3
or ecx, 0xffffffff
lea edi, [esp + 0x1b8]
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x2ec]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
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
lea edi, [esp + 0x154]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x154]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x2f0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1b8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x2f4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
or eax, 0xffffffff
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x2d8
ret
lea ecx, [esp + 0x154]
push ecx
push 0
call fcn.00408450
add esp, 8
test ax, ax
jne 0x406ce9
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x2d8
ret
call fcn.00405450
mov dword [esp + 0x10], 0x32
xor ecx, ecx
mov eax, 0xbdb660
cmp byte [eax], 0
je 0x406d11
add eax, 0xb4
inc ecx
cmp eax, 0xbdd988
jl 0x406cfd
jmp 0x406d15
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x2ec]
push ebp
mov dword [esp + 0x10], 6
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jns 0x406d8f
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x158]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x30]
push 0x413c40
push eax
call fcn.00409684
add esp, 0xc
lea ecx, [esp + 0x2c]
push 0x40015
push str.ISAM
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 4
jne 0x406f11
mov dword [esp + 0x10], 6
xor edx, edx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edx
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x24]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x26]
mov eax, dword [esp + 0x22]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x9c]
push str._02d_02d_03d
push ecx
call fcn.00409684
or ecx, 0xffffffff
lea edi, [esp + 0x1d0]
xor eax, eax
mov dword [ebx], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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 edi, str..IDX
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
call fcn.004083f0
mov ebp, eax
or ecx, 0xffffffff
mov dword [ebx], 0
lea edi, [esp + 0x1d4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, ebx
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 + 0xac]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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 edi, str..DAT
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
call fcn.004083f0
add esp, 0x1c
test ebp, ebp
jge 0x406f01
test eax, eax
jl 0x406f21
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406d25
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x90]
test al, al
jne 0x406f63
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x90]
lea edx, [esp + 0x90]
rep stosd dword es:[edi], eax
mov edi, str.SISM001
or ecx, 0xffffffff
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]
mov eax, dword [esp + 0x14]
mov ecx, 0x14
lea eax, [eax + eax*4]
lea edx, [eax + eax*8]
xor eax, eax
shl edx, 2
lea ebp, [edx + 0xbdb610]
mov word [edx + 0xbdb608], 0
mov edi, ebp
mov dword [edx + 0xbdb60c], 1
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0x1bc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebp
lea ebp, [edx + 0xbdb660]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [edx + 0xbdb6b0]
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x14
mov edi, ebp
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0x158]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
lea edi, [esp + 0x90]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov word [eax + 8], cx
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1bc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x90]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
or ecx, 0xffffffff
mov edi, ebx
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]
or ecx, 0xffffffff
lea edi, [esp + 0x90]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x2f4]
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]
or ecx, 0xffffffff
lea edi, [esp + 0x1bc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x2f8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
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..IDX
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 edx, [esp + 0xf4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0xf4]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2ec]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xf4]
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..IDX
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
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
and ecx, 3
lea eax, [esp + 0x2c]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xf4]
push eax
push ecx
call ebp
test eax, eax
jne 0x4071e5
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x12c
call edi
lea edx, [esp + 0x2c]
lea eax, [esp + 0xf4]
push edx
push eax
call ebp
test eax, eax
jne 0x4071de
inc esi
mov dword [esp + 0x10], 0xffffffff
cmp si, 0xa
jl 0x40719b
call fcn.00405630
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2d8
ret
push 0x12c
call edi
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, ebx
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 + 0x2c]
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, str..DAT
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 + 0xf4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0xf4]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2ec]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xf4]
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..DAT
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 + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xf8]
push ecx
call ebp
test eax, eax
jne 0x40740e
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x12c
call edi
lea edx, [esp + 0x2c]
lea eax, [esp + 0xf4]
push edx
push eax
call ebp
test eax, eax
jne 0x407407
inc esi
mov dword [esp + 0x10], 0xffffffff
cmp si, 0xa
jl 0x4072c2
mov ecx, 0x19
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x2c]
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, str..IDX
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xf4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0xf4]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2ec]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xf4]
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..IDX
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xf4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
call ebp
test eax, eax
jne 0x407416
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x12c
call esi
lea edx, [esp + 0xf4]
lea eax, [esp + 0x2c]
push edx
push eax
call ebp
test eax, eax
jne 0x40742a
inc edi
cmp di, 0xa
jl 0x4073cc
call fcn.00405630
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2d8
ret
push 0x12c
call edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
call fcn.00405630
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2d8
ret
push 0x12c
call esi
mov dword [esp + 0x10], 0
call fcn.00405630
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2d8
ret