Function at 0x4024f0
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
sub esp, 0x80c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
push esi
push edi
lea eax, [esp + 0x71c]
push 0x100
push eax
call ebx
mov edi, str._telephon.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x71c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x100
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 + 0x220]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov edi, str._telephon.tmp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x21c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40d2bc
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 + 0x720]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404b10
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
mov dword [esp + 0x18], esi
je 0x4026de
lea ecx, [esp + 0x21c]
push 0x40d2b8
push ecx
call fcn.00404b10
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
jne 0x4025da
push esi
call fcn.00404a60
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret 0x10
push esi
lea edx, [esp + 0x20]
push 0x200
push edx
mov dword [esp + 0x20], ebx
call fcn.004049e0
add esp, 0xc
test eax, eax
je 0x4026a7
mov al, byte [esp + 0x1c]
cmp al, 0x5b
jne 0x402700
mov al, byte [esp + 0x1d]
xor edx, edx
cmp al, 0x5d
je 0x402625
mov cl, al
xor eax, eax
mov byte [esp + eax + 0x31c], cl
mov cl, byte [esp + eax + 0x1e]
inc edx
inc eax
cmp cl, 0x5d
jne 0x402613
mov byte [esp + edx + 0x31c], bl
lea esi, [esp + 0x31c]
mov eax, str.Locations
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4026eb
cmp cl, bl
je 0x402660
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4026eb
add eax, 2
add esi, 2
cmp cl, bl
jne 0x402638
xor eax, eax
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0x40d2a8
push eax
call fcn.004049a0
mov esi, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x1c]
push esi
push 0x200
push ecx
call fcn.004049e0
add esp, 0xc
test eax, eax
jne 0x4025f9
mov edi, dword [esp + 0x10]
push esi
call fcn.00404a60
add esp, 4
push edi
call fcn.00404a60
add esp, 4
lea edx, [esp + 0x71c]
lea eax, [esp + 0x21c]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret 0x10
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [esp + 0x14], ecx
jmp 0x40266d
cmp dword [esp + 0x14], 1
jne 0x40266d
xor ebp, ebp
xor ecx, ecx
cmp al, 0x3d
je 0x402731
lea edx, [esp + 0x31c]
lea esi, [esp + 0x1c]
sub edx, esi
lea esi, [esp + ebp + 0x1c]
inc ebp
inc ecx
mov byte [esi + edx], al
mov al, byte [esp + ebp + 0x1c]
cmp al, 0x3d
jne 0x402720
mov byte [esp + ecx + 0x31c], bl
inc ebp
lea esi, [esp + 0x31c]
mov eax, str.Location0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402769
cmp cl, bl
je 0x402765
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402769
add eax, 2
add esi, 2
cmp cl, bl
jne 0x402745
xor eax, eax
jmp 0x40276e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40266d
lea edi, [esp + 0x31c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x51c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x51c]
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, 0x40d33c
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 2
mov al, byte [esp + ebp + 0x1c]
cmp al, 0x2c
je 0x4027ef
mov byte [esp + ebp + 0x51c], al
mov al, byte [esp + ebp + 0x1d]
inc ebp
cmp al, 0x2c
jne 0x4027df
mov al, byte [esp + ebp + 0x1c]
mov byte [esp + ebp + 0x51c], al
inc ebp
dec ecx
jne 0x4027d7
mov al, byte [esp + ebp + 0x1d]
mov byte [esp + ebp + 0x51c], bl
xor ecx, ecx
inc ebp
cmp al, 0x22
je 0x402824
mov edx, dword [esp + 0x828]
inc ebp
mov byte [ecx + edx], al
mov al, byte [esp + ebp + 0x1c]
inc ecx
cmp al, 0x22
jne 0x402810
mov eax, dword [esp + 0x828]
add ebp, 3
mov byte [ecx + eax], bl
mov al, byte [esp + ebp + 0x1c]
xor ecx, ecx
cmp al, 0x22
je 0x40284f
mov edx, dword [esp + 0x82c]
inc ebp
mov byte [ecx + edx], al
mov al, byte [esp + ebp + 0x1c]
inc ecx
cmp al, 0x22
jne 0x40283b
mov eax, dword [esp + 0x82c]
mov edx, dword [esp + 0x820]
mov byte [ecx + eax], bl
mov ecx, dword [esp + 0x824]
push ecx
lea eax, [esp + 0x520]
push edx
push eax
lea ecx, [esp + 0x328]
push str._s__s____s
push ecx
call fcn.00404900
lea edi, [esp + 0x330]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x51c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x51c]
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 + ebp + 0x1c]
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 + 0x51c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push 0x40d2a8
push ecx
jmp 0x40267c