Function at 0x40bbe0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e312a
mov eax, dword fs:[0]
push eax
mov eax, 0x267d8
call fcn.004230d0
mov eax, dword [0x66f3a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2679c], ecx
lea eax, [ecx + 0x4c]
push eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.0042eabd
add esp, 8
lea ecx, [ebp - 0x267e4]
mov dword [ebp - 4], 0
call fcn.0042c871
cmp dword [ebp - 0x2dc], 0x10
lea eax, [ebp - 0x2f0]
lea ecx, [ebp - 0x267e4]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x2f0]
push eax
call fcn.0042c921
lea ecx, [ebp - 0x267e4]
call fcn.0042cdad
mov edi, eax
mov ecx, 1
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmove eax, ecx
mov dword [ebp - 0x267a0], eax
lea esi, [eax + 1]
push esi
call fcn.00422a8d
push esi
mov ebx, eax
push 0
push ebx
call fcn.004a20a0
mov ecx, dword [edi + 4]
add esp, 0x10
xor edx, edx
sub ecx, dword [edi]
je 0x40bcb3
mov eax, dword [edi]
mov al, byte [edx + eax]
mov byte [edx + ebx], al
inc edx
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp edx, eax
jb 0x40bca1
lea eax, [ebp - 0x267a8]
mov dword [ebp - 0x267a4], 0
push eax
lea eax, [ebp - 0x267a4]
mov dword [ebp - 0x267a8], 0
push eax
push dword [ebp - 0x267a0]
push ebx
call fcn.0042bb26
mov eax, dword [ebp - 0x267a4]
add esp, 0x10
test eax, eax
jne 0x40bd02
test ebx, ebx
je 0x40bd23
push ebx
call fcn.00422a96
add esp, 4
xor esi, esi
jmp 0x40c79e
mov edi, dword [ebp - 0x2679c]
mov ecx, edi
push eax
call fcn.0040c7f0
mov esi, eax
test ebx, ebx
je 0x40bd1f
push ebx
call fcn.00422a96
add esp, 4
test esi, esi
jne 0x40bd2a
xor esi, esi
jmp 0x40c79e
xor eax, eax
mov dword [ebp - 0x24c], 7
push eax
push 0x5f68b8
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
call fcn.00408a70
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x5f68b8
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
call fcn.00408a70
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x5f68b8
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
call fcn.00408a70
xor eax, eax
mov byte [ebp - 4], 4
push eax
push 0x5f68b8
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.00408a70
push 0x5f6e9c
push dword [edi + 0x20]
mov byte [ebp - 4], 5
call fcn.0040cc80
mov edx, eax
add esp, 8
test edx, edx
je 0x40be33
cmp word [edx], 0
jne 0x40be12
xor ecx, ecx
jmp 0x40be26
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40be17
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x260]
call fcn.00408a70
push str.RunExe
push dword [edi + 0x20]
call fcn.0040cc80
mov edx, eax
add esp, 8
test edx, edx
je 0x40be7c
cmp word [edx], 0
jne 0x40be53
xor ecx, ecx
jmp 0x40be6f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40be60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x290]
call fcn.00408a70
push str.RunParam
push dword [edi + 0x20]
call fcn.0040cc80
mov edx, eax
add esp, 8
test edx, edx
je 0x40bebd
cmp word [edx], 0
jne 0x40be9c
xor ecx, ecx
jmp 0x40beb0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bea1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x278]
call fcn.00408a70
push str.SoftMD5
push dword [edi + 0x20]
call fcn.0040cc80
mov edx, eax
add esp, 8
test edx, edx
je 0x40befe
cmp word [edx], 0
jne 0x40bedd
xor ecx, ecx
jmp 0x40bef1
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bee2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00408a70
cmp dword [ebp - 0x250], 0
jne 0x40bf0e
xor esi, esi
jmp 0x40c6b2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a20a0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x2c4], 7
mov dword [ebp - 0x2c8], 0
mov word [ebp - 0x2d8], ax
cmp word [ebp - 0x218], ax
jne 0x40bf60
xor ecx, ecx
jmp 0x40bf7f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bf70
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2d8]
call fcn.00408a70
mov eax, dword [edi + 8]
xor ecx, ecx
mov esi, dword [edi + 4]
mov ebx, eax
sub ebx, esi
mov byte [ebp - 4], 6
add ebx, 3
xor edi, edi
shr ebx, 2
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x40bfce
mov ecx, dword [esi]
test ecx, ecx
je 0x40bfc6
mov eax, dword [ecx]
push 0
push 0
push 0x46b
call dword [eax]
inc edi
add esi, 4
cmp edi, ebx
jne 0x40bfb3
mov ecx, dword [ebp - 0x2679c]
xor edi, edi
mov eax, dword [ecx + 8]
mov ebx, eax
mov esi, dword [ecx + 4]
sub ebx, esi
add ebx, 3
xor ecx, ecx
shr ebx, 2
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x40c00c
mov ecx, dword [esi]
test ecx, ecx
je 0x40c004
mov eax, dword [ecx]
push 0
push 0
push 0x465
call dword [eax]
inc edi
add esi, 4
cmp edi, ebx
jne 0x40bff1
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.0042d5ac
lea eax, [ebp - 0x308]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.0040a360
add esp, 0x14
cmp dword [ebp - 0x294], 8
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 8
cmovae eax, dword [ebp - 0x2a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c08e
cmp dword [ebp - 0x294], 8
lea eax, [ebp - 0x2a8]
cmovae eax, dword [ebp - 0x2a8]
push eax
call fcn.0042ce96
add esp, 4
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.0042eabd
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0042eabd
mov ecx, eax
add esp, 0x10
cmp dword [ecx + 0x14], 0x10
jb 0x40c0c5
mov ecx, dword [ecx]
lea edx, [ebp - 0x968]
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40c0d0
mov eax, dword [ebp - 0x21c]
cmp eax, 0x10
jb 0x40c0fc
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040ed10
cmp dword [ebp - 0x2ac], 0x10
lea ecx, [ebp - 0x2c0]
lea edx, [ebp - 0x768]
cmovae ecx, dword [ebp - 0x2c0]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40c116
lea ecx, [ebp - 0x26798]
call fcn.0042bbfd
sub esp, 0x300
mov byte [ebp - 4], 0xa
mov edi, esp
lea esi, [ebp - 0x968]
mov ecx, 0xc0
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x26798]
call fcn.0042bc88
lea ecx, [ebp - 0x26798]
call fcn.0042c565
push 0x300
lea eax, [ebp - 0x668]
push 0
push eax
call fcn.004a20a0
xorps xmm0, xmm0
mov dword [ebp - 0x368], 0
add esp, 0xc
movups xmmword [ebp - 0x360], xmm0
nop dword [eax + eax]
lea ecx, [ebp - 0x26798]
call fcn.0042c2c4
test eax, eax
je 0x40c228
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x26798]
call fcn.0042c02e
movsd xmm0, qword [ebp - 0x358]
xor ecx, ecx
divsd xmm0, qword [ebp - 0x360]
mov eax, dword [ebp - 0x2679c]
xor edi, edi
movsd qword [eax + 0x10], xmm0
mov esi, dword [eax + 4]
mulsd xmm0, qword [0x5f6f00]
mov eax, dword [eax + 8]
mov ebx, eax
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, eax
cvttsd2si edx, xmm0
cmova ebx, ecx
mov dword [ebp - 0x267a0], edx
test ebx, ebx
je 0x40c220
nop
mov ecx, dword [esi]
test ecx, ecx
je 0x40c218
mov eax, dword [ecx]
push edx
push 0
push 0x466
call dword [eax]
mov edx, dword [ebp - 0x267a0]
inc edi
add esi, 4
cmp edi, ebx
jne 0x40c200
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x26798]
call fcn.0042c2d0
test eax, eax
je 0x40c190
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x26798]
call fcn.0042c02e
movsd xmm2, qword [ebp - 0x358]
xor edi, edi
movups xmm1, xmmword [ebp - 0x360]
mov ecx, dword [ebp - 0x2679c]
movaps xmm0, xmm2
movsd qword [ebp - 0x267b0], xmm2
divsd xmm0, xmm1
movsd qword [ecx + 0x10], xmm0
mov eax, dword [ecx + 8]
mov ebx, eax
mulsd xmm0, qword [0x5f6f00]
mov esi, dword [ecx + 4]
sub ebx, esi
add ebx, 3
xor ecx, ecx
shr ebx, 2
cmp esi, eax
cvttsd2si edx, xmm0
cmova ebx, ecx
mov dword [ebp - 0x267a0], edx
test ebx, ebx
je 0x40c2d4
mov ecx, dword [esi]
test ecx, ecx
je 0x40c2bd
mov eax, dword [ecx]
push edx
push 0
push 0x466
call dword [eax]
mov edx, dword [ebp - 0x267a0]
inc edi
add esi, 4
cmp edi, ebx
jne 0x40c2a5
movups xmm1, xmmword [ebp - 0x360]
movsd xmm2, qword [ebp - 0x267b0]
ucomisd xmm2, xmm1
lahf
test ah, 0x44
jp 0x40c2f0
ucomisd xmm2, qword [0x5f6ef0]
lahf
test ah, 0x44
jp 0x40c3ca
xor esi, esi
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push esi
cmovae eax, dword [ebp - 0x248]
push 0x5f68b8
push dword [ebp - 0x238]
push eax
call fcn.00408880
add esp, 0x10
test eax, eax
je 0x40c5fc
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
cmp dword [ecx + 0x14], 8
jb 0x40c33c
mov eax, dword [ecx]
jmp 0x40c33e
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x2a8]
push edx
push eax
call fcn.00408950
mov ebx, dword [ebp - 0x2679c]
lea eax, [ebp - 0x230]
push eax
mov ecx, ebx
call fcn.0040cd80
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x248]
cmp dword [ebp - 0x21c], 8
push ecx
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.004a4de1
add esp, 8
test eax, eax
mov eax, 1
cmove esi, eax
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40c3c0
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00408b70
test esi, esi
je 0x40c602
jmp 0x40c3d0
mov ebx, dword [ebp - 0x2679c]
mov esi, dword [ebx + 4]
xor ecx, ecx
mov eax, dword [ebx + 8]
xor edi, edi
mov ebx, eax
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x40c40b
nop dword [eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x40c403
mov eax, dword [ecx]
push 0x64
push 0
push 0x466
call dword [eax]
inc edi
add esi, 4
cmp edi, ebx
jne 0x40c3f0
push 0x5f68b8
lea ecx, [ebp - 0x230]
call fcn.0040a9f0
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x267a0]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x308]
mov dword [ebp - 0x267a0], 0x2e
call fcn.0040f070
push eax
push 0
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x308]
call fcn.0040f130
push str..exe
push eax
lea eax, [ebp - 0x320]
mov byte [ebp - 4], 0xc
push eax
call fcn.0040a300
add esp, 0xc
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0xe
call fcn.00408120
lea eax, [ebp - 0x290]
push 0x5f68b8
push eax
call fcn.0040a2b0
add esp, 8
test al, al
je 0x40c4aa
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x320]
call fcn.00408950
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x350]
push eax
call fcn.0040a360
add esp, 0xc
lea ecx, [ebp - 0x230]
push eax
call fcn.0040b1c0
lea ecx, [ebp - 0x350]
call fcn.00408120
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x2a8]
cmovae ecx, dword [ebp - 0x230]
cmp dword [ebp - 0x294], 8
push ecx
cmovae eax, dword [ebp - 0x2a8]
push eax
call fcn.0042d1e6
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0042d199
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
push 0x3e8
call ebx
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c5a9
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0042e1bf
add esp, 4
test eax, eax
je 0x40c5a9
cmp dword [ebp - 0x264], 8
lea edx, [ebp - 0x278]
lea eax, [ebp - 0x230]
cmovae edx, dword [ebp - 0x278]
cmp dword [ebp - 0x21c], 8
push edx
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0042d908
add esp, 8
mov ecx, dword [ebp - 0x2679c]
push 0
push 0
push 0x469
call fcn.0040c8e0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x3e8
call ebx
lea ecx, [ebp - 0x320]
call fcn.00408120
lea ecx, [ebp - 0x230]
call fcn.00408120
mov esi, 1
jmp 0x40c64d
mov ebx, dword [ebp - 0x2679c]
movsd xmm0, qword [0x5f6ef8]
xor ecx, ecx
movsd qword [ebx + 0x10], xmm0
xor edi, edi
mov esi, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov ebx, eax
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x40c64b
nop dword [eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x40c643
mov eax, dword [ecx]
push 0x64
push 0
push 0x467
call dword [eax]
inc edi
add esi, 4
cmp edi, ebx
jne 0x40c630
xor esi, esi
lea ecx, [ebp - 0x26798]
call fcn.005ba100
mov eax, dword [ebp - 0x2ac]
cmp eax, 0x10
jb 0x40c676
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.0040ed10
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x2ac], 0xf
mov dword [ebp - 0x2b0], 0
mov byte [ebp - 0x2c0], 0
call fcn.00408120
lea ecx, [ebp - 0x308]
call fcn.00408120
lea ecx, [ebp - 0x2d8]
call fcn.00408120
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x40c6d0
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00408b70
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x238], 0
cmp eax, 8
jb 0x40c70b
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00408b70
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x40c746
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00408b70
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x40c781
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00408b70
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
lea ecx, [ebp - 0x267e4]
call fcn.0042c8b3
mov ecx, dword [ebp - 0x2dc]
cmp ecx, 0x10
jb 0x40c7c7
inc ecx
push ecx
push dword [ebp - 0x2f0]
lea ecx, [ebp - 0x2f0]
call fcn.0040ed10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422909
mov esp, ebp
pop ebp
ret