Function at 0x40bc20
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b56c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
xor eax, eax
mov dword [ebp - 0x40], 0
push esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 3
push eax
call fcn.00418350
mov esi, eax
add esp, 4
lea eax, [ebp - 0x88]
cmp eax, esi
je 0x40bd2a
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x40bcf2
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bce8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c56c
push edx
push ecx
call fcn.00419c57
add esp, 8
mov dword [ebp - 0x78], 0
xor eax, eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x78], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x40bd6a
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bd60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c56c
push edx
push ecx
call fcn.00419c57
add esp, 8
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f4e0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x40bdee
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40bdbc
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bdb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c571
push edx
push ecx
call fcn.00419c57
add esp, 8
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x40be2e
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40be24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c571
push edx
push ecx
call fcn.00419c57
add esp, 8
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ff30
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x40beb2
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40be80
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40be76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c576
push edx
push ecx
call fcn.00419c57
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x40bef2
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bee8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c576
push edx
push ecx
call fcn.00419c57
add esp, 8
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ffa0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x40bf76
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40bf44
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bf3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c57b
push edx
push ecx
call fcn.00419c57
add esp, 8
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x40bfb6
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bfac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c57b
push edx
push ecx
call fcn.00419c57
add esp, 8
cmp dword [ebp - 0x78], 0
je 0x40c4bb
cmp dword [ebp - 0x18], 0
je 0x40c4bb
cmp dword [ebp - 0x48], 0
je 0x40c4bb
mov dword [ebp - 0x70], 0
push edi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0xf
mov byte [ebp - 0xd4], 0
push 0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 6
call fcn.00438040
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0xd4]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 7
cmovae eax, dword [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0xe8]
call fcn.00438220
mov edi, dword [ebp - 0xc4]
mov dword [ebp - 0xa4], edi
test edi, edi
je 0x40c3d4
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
cmp dword [ebp - 0xc0], 0x10
lea eax, [ebp - 0xd4]
mov ecx, dword [ebp - 0x5c]
cmovae eax, dword [ebp - 0xd4]
mov byte [ebp - 4], 8
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xdc], ecx
cmp edi, ecx
ja 0x40c0fe
cmp ecx, 0x10
mov dword [ebp - 0x60], edi
push edi
lea esi, [ebp - 0x70]
cmovae esi, dword [ebp - 0x70]
push eax
push esi
call fcn.0043a790
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x40c1e1
cmp edi, 0x7fffffff
ja 0x40c580
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
ja 0x40c146
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
ja 0x40c146
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea ecx, [esi + 1]
cmp ecx, 0x1000
jb 0x40c16c
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x40c585
jmp 0x40c150
mov esi, SysReAllocString
mov eax, 0x80000023
push eax
call fcn.00419c27
add esp, 4
test eax, eax
je 0x40c58a
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40c17f
test ecx, ecx
je 0x40c17d
push ecx
call fcn.00419c27
add esp, 4
mov edi, eax
jmp 0x40c17f
xor edi, edi
mov eax, dword [ebp - 0xa4]
push eax
push dword [ebp - 0xd8]
mov dword [ebp - 0x60], eax
push edi
mov dword [ebp - 0x5c], esi
call fcn.0043a790
mov eax, dword [ebp - 0xa4]
add esp, 0xc
mov byte [eax + edi], 0
mov eax, dword [ebp - 0xdc]
cmp eax, 0x10
jb 0x40c1de
mov ecx, dword [ebp - 0x70]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c1d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c58a
push edx
push ecx
call fcn.00419c57
add esp, 8
mov dword [ebp - 0x70], edi
mov edx, dword [ebp - 0x8c]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x40c21f
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c215
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c58a
push edx
push ecx
call fcn.00419c57
add esp, 8
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
call fcn.00438090
mov edx, dword [ebp - 0xc0]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x40c283
mov ecx, dword [ebp - 0xd4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c279
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c58a
push edx
push ecx
call fcn.00419c57
add esp, 8
cmp dword [ebp + 0x10], 0
jne 0x40c2a6
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call fcn.0042a630
test eax, eax
jne 0x40c419
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004245e0
add esp, 8
lea eax, [ebp - 0xbc]
push eax
call fcn.0042a390
test eax, eax
je 0x40c419
cmp dword [ebp + 0x14], 0
je 0x40c2f6
cmp dword [ebp - 0x5c], 0x10
lea ecx, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0042a050
add esp, 0xc
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x40c32c
cmp dword [ebp - 0xa8], 0x10
lea ecx, [ebp - 0xbc]
push dword [ebp - 0xac]
cmovae ecx, dword [ebp - 0xbc]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042a050
add esp, 0xc
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40c34b
lea eax, [ebp - 0x40]
cmp ecx, eax
je 0x40c34b
cmp dword [ebp - 0x2c], 8
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00401490
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40c36a
lea eax, [ebp - 0x58]
cmp ecx, eax
je 0x40c36a
cmp dword [ebp - 0x44], 8
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00401490
test esi, esi
je 0x40c3ce
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00410660
add esp, 8
mov byte [ebp - 0xd], al
cmp dword [ebp - 0x14], 8
jb 0x40c391
cmp dword [ebp - 0x28], 0
je 0x40c41d
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
cmovae eax, edx
cmp word [eax], 0
je 0x40c41d
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c41d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40c41d
mov byte [ebp - 0xd], 1
jmp 0x40c41d
lea ecx, [ebp - 0xe8]
call fcn.00438090
mov edx, dword [ebp - 0xc0]
cmp edx, 0x10
jb 0x40c419
mov ecx, dword [ebp - 0xd4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c40f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c58a
push edx
push ecx
call fcn.00419c57
add esp, 8
mov byte [ebp - 0xd], 0
mov edx, dword [ebp - 0xa8]
pop edi
cmp edx, 0x10
jb 0x40c458
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c44e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c58f
push edx
push ecx
call fcn.00419c57
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
cmp edx, 0x10
jb 0x40c4a7
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c49d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c58f
push edx
push ecx
call fcn.00419c57
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
jmp 0x40c4bf
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x74]
pop esi
cmp eax, 8
jb 0x40c4db
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.004047a0
xor eax, eax
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x74], 7
cmp eax, 8
jb 0x40c507
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004047a0
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 8
jb 0x40c532
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004047a0
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x40c55b
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.004047a0
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0043d74f
call fcn.0043d74f
call fcn.0043d74f
call fcn.0043d74f
call fcn.004012a0
call fcn.00401280
call fcn.0043d74f
call fcn.0043d74f
int3