Function at 0x40c040
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9d1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3fc
mov eax, dword [0x4f5b3c]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004aa214
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.004aad1d
mov eax, dword [0x4f5b3c]
mov dword [ebp - 0x3c], eax
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x4c], vtable.CFileException.0
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0xffffffff
call fcn.004a9d5c
mov ecx, dword [edi + 0x30]
lea esi, [edi + 0x30]
mov byte [ebp - 4], 5
cmp dword [ecx - 8], ebx
jne 0x40c0d6
mov dword [ebp - 0x4c], vtable.CFileException.0
mov byte [ebp - 4], 6
jmp 0x40caa7
push 0x3a
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.NOUNINSTALL
call fcn.004a9c8d
lea ebx, [edi + 4]
mov ecx, ebx
call fcn.00438180
test eax, eax
jne 0x40c198
push esi
lea edx, [ebp - 0x34]
push str.FILE:__
push edx
call fcn.004a9edc
push 0x4ee4f8
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
push eax
call fcn.004a9e68
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.004a9d0c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.004a9c1f
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.004a9c1f
push 0x3a
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.register
call fcn.004a9c8d
mov ecx, ebx
call fcn.00438180
test eax, eax
je 0x40c16b
push str.__register
lea ecx, [ebp - 0x14]
call fcn.004a9faf
mov eax, dword [edi + 0x64]
test eax, eax
je 0x40c17f
push str.__sharedDLL
lea ecx, [ebp - 0x14]
call fcn.004a9faf
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
call fcn.004a9994
mov ecx, 0x4fee30
call fcn.00421b40
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
jne 0x40c1b4
mov dword [ebp - 0x4c], vtable.CFileException.0
mov byte [ebp - 4], 9
jmp 0x40caa7
lea eax, [edi + 0x44]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c1d3
mov dword [ebp - 0x4c], vtable.CFileException.0
mov byte [ebp - 4], 0xa
jmp 0x40caa7
push 1
mov ecx, esi
call fcn.00434b80
cmp eax, 2
jne 0x40c299
mov ecx, dword [0x4f5b3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push edx
push str.ReplaceExist:_ERROR__cant_replace_the_file__s_because_its_really_a_directory.
push eax
mov byte [ebp - 4], 0xb
call fcn.004a768f
lea ecx, [ebp - 0x14]
push ecx
call fcn.0045db50
mov al, byte [0x4feef8]
add esp, 0x10
test al, 8
jne 0x40c236
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push edx
push 0x28
push eax
call fcn.004a76a2
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push 0
push 0x30
push ecx
call fcn.004b1fc6
lea ecx, [ebp - 0x18]
mov dword [0x4feef0], 0xe9
mov byte [ebp - 4], 5
call fcn.004a9c1f
mov dword [ebp - 0x4c], vtable.CFileException.0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call fcn.004a9c1f
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004aa269
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004a9c1f
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004a9c1f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x40c520
mov eax, dword [esi]
lea edx, [ebp - 0x4c]
push edx
push 0x10
push eax
lea ecx, [ebp - 0x5c]
call fcn.004aa326
test eax, eax
jne 0x40c518
push esi
lea ecx, [ebp - 0x30]
call fcn.004a9994
lea eax, [ebp - 0x30]
mov ecx, 0x4fee30
push eax
mov byte [ebp - 4], 0xd
call fcn.0041c5c0
lea ecx, [ebp - 0x18]
push 2
push ecx
lea ecx, [ebp - 0x30]
call fcn.004a7219
mov eax, dword [eax]
push 0x4eeb84
push eax
call fcn.00474eb8
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
sete byte [ebp - 0x35]
call fcn.004a9c1f
mov al, byte [ebp - 0x35]
test al, al
je 0x40c50a
push 0
lea ecx, [ebp - 0xd4]
call fcn.00415cc0
mov eax, dword [0x4f5b3c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], eax
push 0x3f
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x10
call fcn.004372c0
push 0x8c3
lea ecx, [ebp - 0x34]
call fcn.004abac8
lea edx, [ebp - 0x18]
mov ecx, esi
push edx
call fcn.004354c0
mov eax, dword [eax]
mov ecx, dword [ebp - 0x34]
push eax
lea edx, [ebp - 0x2c]
push ecx
push edx
mov byte [ebp - 4], 0x11
call fcn.004a768f
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call fcn.004a9c1f
push 0
push ecx
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [0x4feef0], 0xcb
call fcn.004a9994
push ecx
lea edx, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x28], esp
push edx
mov byte [ebp - 4], 0x12
call fcn.004a9994
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x10
call fcn.004162a0
mov eax, dword [0x4feef0]
push 0
push 0
push eax
lea ecx, [ebp - 0xd4]
call fcn.00416340
cmp eax, 1
jne 0x40c466
mov ecx, dword [0x4f5b3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 0x13
call fcn.004a9d0c
lea ecx, [ebp - 0x18]
call fcn.00436630
lea ecx, [ebp - 0x18]
mov dword [0x4feef0], 0
mov byte [ebp - 4], 0x10
call fcn.004a9c1f
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.004a9c1f
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xe
call fcn.004a9c1f
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x15
call fcn.004a9c1f
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x14
call fcn.004a9c1f
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x16
call fcn.00406750
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0xd
call fcn.004ab31a
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.004a9c1f
mov dword [ebp - 0x4c], vtable.CFileException.0
mov byte [ebp - 4], 0x17
jmp 0x40caa7
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.004a9c1f
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xe
call fcn.004a9c1f
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x19
call fcn.004a9c1f
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x18
call fcn.004a9c1f
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x1a
call fcn.00406750
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0xd
call fcn.004ab31a
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.004a9c1f
mov dword [ebp - 0x4c], vtable.CFileException.0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x1b
call fcn.004a9c1f
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004aa269
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004a9c1f
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004a9c1f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.004a9c1f
jmp 0x40c520
lea ecx, [ebp - 0x5c]
call fcn.004aa541
push 0x3a
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.NOUNINSTALL
call fcn.004a9c8d
mov ecx, ebx
call fcn.00438180
test eax, eax
jne 0x40c61e
mov eax, dword [0x4ffa20]
test eax, eax
jne 0x40c55b
push 0
mov ecx, esi
call fcn.00434b80
test eax, eax
jne 0x40c61e
mov eax, dword [0x4f5b3c]
mov dword [ebp - 0x20], eax
push 0x4ee4fc
lea ecx, [ebp - 0x18]
push 0x4fef30
push ecx
mov byte [ebp - 4], 0x1c
call fcn.004a9e68
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x1d
call fcn.004a9d0c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1c
call fcn.004a9c1f
push 0x3a
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.register
call fcn.004a9c8d
mov ecx, ebx
call fcn.00438180
test eax, eax
je 0x40c5bd
push 0x4ee510
lea ecx, [ebp - 0x20]
call fcn.004a9faf
mov eax, dword [edi + 0x64]
test eax, eax
je 0x40c5d1
push 0x4ee514
lea ecx, [ebp - 0x20]
call fcn.004a9faf
push 0x4ee4f8
lea edx, [ebp - 0x18]
push esi
push edx
call fcn.004a9e68
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x1e
call fcn.004a9feb
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1c
call fcn.004a9c1f
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.004a9994
mov ecx, 0x4fee30
call fcn.00421b40
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.004a9c1f
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
push esi
call fcn.004a9994
mov ecx, edi
call fcn.0040ba30
test eax, eax
jne 0x40c682
mov dword [ebp - 0x4c], vtable.CFileException.0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x1f
call fcn.004a9c1f
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004aa269
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004a9c1f
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004a9c1f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
lea ecx, [ebp - 0x1ec]
push ecx
push eax
call fcn.004aaa8b
test eax, eax
je 0x40c6dd
test byte [ebp - 0x1dc], 1
je 0x40c6dd
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1dc], 0
call fcn.004aad9a
mov esi, dword [esi]
lea edx, [ebp - 0x1ec]
push edx
push esi
mov byte [ebp - 4], 0x21
call fcn.004aabf0
jmp 0x40c6d1
mov dword [ebp - 4], 5
call fcn.004aadd8
mov eax, dword [edi + 0x30]
lea esi, [edi + 0x30]
lea ecx, [ebp - 0x4c]
push ecx
push 0x1010
push eax
lea ecx, [ebp - 0x5c]
call fcn.004aa326
test eax, eax
je 0x40c825
lea ecx, [ebp - 0x5c]
call fcn.004aa541
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [edi + 0x44]
lea edx, [ebp - 0x304]
push edx
push eax
call fcn.004aaa8b
test eax, eax
je 0x40c7bb
mov ecx, dword [ebp - 0x300]
mov eax, dword [ebp - 0x304]
mov edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x1e8], ecx
mov cl, byte [ebp - 0x2f3]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x2f8]
mov byte [ebp - 0x1db], cl
mov ecx, 0x41
lea esi, [ebp - 0x2f2]
lea edi, [ebp - 0x1da]
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x1e0], eax
mov eax, 0x12
rep movsd dword es:[edi], dword [esi]
inc eax
lea edx, [eax - 0x12]
cmp edx, 0x104
jb 0x40c77a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1dc], 0
call fcn.004aad9a
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1ec]
push ecx
mov byte [ebp - 4], 0x24
mov eax, dword [eax + 0x44]
push eax
call fcn.004aabf0
mov dword [ebp - 4], 5
call fcn.004aadd8
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
call fcn.004aad9a
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x44]
push eax
push ecx
mov byte [ebp - 4], 0x27
call fcn.004aa652
mov eax, dword [edi + 0x30]
lea ecx, [ebp - 0x304]
push ecx
push eax
call fcn.004aabf0
jmp 0x40c801
mov dword [ebp - 4], 5
call fcn.004aadd8
lea ecx, [edi + 0x44]
call fcn.004a9baa
mov dword [ebp - 0x4c], vtable.CFileException.0
mov byte [ebp - 4], 0x29
jmp 0x40caa7
mov eax, dword [0x4f5b3c]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x44]
lea ebx, [edi + 0x44]
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 0x2a
push ecx
push eax
call fcn.004aaa8b
test eax, eax
je 0x40c9b8
mov edx, dword [0x4f5b3c]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
mov byte [ebp - 4], 0x2b
call fcn.00434d10
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x2c
call fcn.004a9d0c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x2b
call fcn.004a9c1f
lea ecx, [ebp - 0x30]
call fcn.00434be0
test eax, eax
jne 0x40c891
lea ecx, [ebp - 0x30]
call fcn.00434eb0
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x408]
push ecx
push 0
push 0x4eeb80
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x408]
lea ecx, [ebp - 0x20]
push eax
call fcn.004a9d5c
lea ecx, [ebp - 0x18]
push ecx
mov ecx, ebx
call fcn.004354c0
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x2d
call fcn.004a9d0c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x2b
call fcn.004a9c1f
lea edx, [ebp - 0x34]
mov ecx, esi
push edx
call fcn.00434d10
push ebx
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x2e
push eax
call fcn.004a9e02
mov eax, dword [eax]
mov ecx, ebx
push eax
mov byte [ebp - 4], 0x2f
call fcn.004a9d5c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x2e
call fcn.004a9c1f
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x2b
call fcn.004a9c1f
mov ecx, dword [ebp - 0x304]
mov edx, dword [ebp - 0x300]
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x1ec], ecx
mov ecx, dword [ebp - 0x2f8]
mov dword [ebp - 0x1e8], edx
mov dl, byte [ebp - 0x2f3]
mov dword [ebp - 0x1e0], ecx
mov ecx, 0x41
lea esi, [ebp - 0x2f2]
lea edi, [ebp - 0x1da]
mov dword [ebp - 0x1e4], eax
mov byte [ebp - 0x1db], dl
mov eax, 0x12
rep movsd dword es:[edi], dword [esi]
inc eax
lea ecx, [eax - 0x12]
cmp ecx, 0x104
jb 0x40c96f
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1dc], 0
call fcn.004aad9a
mov ebx, dword [ebx]
lea edx, [ebp - 0x1ec]
push edx
push ebx
mov byte [ebp - 4], 0x31
call fcn.004aabf0
mov dword [ebp - 4], 0x2b
call fcn.004aadd8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x2a
call fcn.004a9c1f
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.00436630
lea ecx, [ebp - 0x64]
call fcn.004aad9a
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi + 0x44]
push ecx
push eax
mov byte [ebp - 4], 0x34
call fcn.004aa652
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x304]
push edx
push eax
call fcn.004aabf0
jmp 0x40ca2f
mov dword [ebp - 4], 0x2a
call fcn.004aadd8
push ecx
lea edx, [edi + 0x30]
mov dword [ebp - 0x28], esp
mov ecx, esp
push edx
call fcn.004a9994
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 0x36
call fcn.00403850
mov ecx, 0x4fee30
mov byte [ebp - 4], 0x2a
call fcn.00423580
push 0x3a
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.register
call fcn.004a9c8d
lea ecx, [edi + 4]
call fcn.00438180
test eax, eax
je 0x40ca90
mov dword [edi + 0x2c], 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.004a9c1f
mov dword [ebp - 0x4c], vtable.CFileException.0
mov byte [ebp - 4], 0x37
lea ecx, [ebp - 0x3c]
call fcn.004a9c1f
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004aa269
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004a9c1f
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004a9c1f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret