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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b748
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x44], edi
cmp dword [edi + 0x10], 0
jne 0x40b538
cmp dword [edi + 0x28], 8
lea esi, [edi + 0x14]
mov eax, esi
jb 0x40b515
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b89d
cmp dword [esi + 0x14], 8
jb 0x40b52c
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40b89d
xor eax, eax
mov dword [ebp - 0x40], 0
push eax
push 0x4335d8
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00409f20
mov dword [ebp - 4], 0
lea eax, [ebp - 0x25]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
push 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x6c], eax
call fcn.004165e0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x70], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0xc]
add eax, esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp esi, eax
je 0x40b647
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
dec ecx
and ecx, esi
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
lea eax, [edx + 1]
cmp ecx, eax
ja 0x40b5fc
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040ba90
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
dec ecx
and eax, ecx
mov dword [ebp - 0x18], eax
add eax, edx
and ecx, eax
lea edi, [ecx*4]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + edi], 0
jne 0x40b62c
push 0x18
call fcn.004165e0
mov ecx, dword [ebp - 0x20]
add esp, 4
mov dword [ecx + edi], eax
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x4c]
mov ecx, dword [ecx + edi]
call fcn.00408650
mov edx, dword [ebp - 0x14]
inc esi
mov edi, dword [ebp - 0x44]
inc edx
mov dword [ebp - 0x14], edx
cmp esi, dword [ebp - 0x50]
jne 0x40b5d4
mov byte [ebp - 4], 3
test edx, edx
je 0x40b82f
push 7
xor eax, eax
mov dword [ebp - 0x68], 0
push str.LB
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
call fcn.00409f20
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
dec ecx
and ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ecx, dword [eax + ecx*4]
mov eax, 0x7ffffffe
sub eax, esi
mov edx, dword [ecx + 0x10]
cmp eax, edx
jb 0x40b8bd
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp dword [ecx + 0x14], 8
jb 0x40b6b6
mov ecx, dword [ecx]
push edx
push ecx
push esi
push eax
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x88]
call fcn.00409530
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x48]
lea ecx, [ebp - 0xa0]
call fcn.00409320
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40b720
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b716
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b8b8
push edx
push ecx
call fcn.004165af
add esp, 8
movups xmm0, xmmword [ebp - 0xa0]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x90]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x74]
movq qword [ebp - 0x30], xmm0
cmp edx, 8
jb 0x40b779
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b76f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b8b8
push edx
push ecx
call fcn.004165af
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x40b7b7
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b7ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b8b8
push edx
push ecx
call fcn.004165af
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
dec ecx
and ecx, dword [ebp - 0x18]
mov esi, dword [eax + ecx*4]
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x40b7fd
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40b7f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b8b8
mov eax, edx
push ecx
push eax
call fcn.004165af
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esi + 0x14], 7
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
jne 0x40b824
mov dword [ebp - 0x18], 0
jmp 0x40b827
inc dword [ebp - 0x18]
test eax, eax
jne 0x40b653
cmp dword [edi + 0x28], 8
lea edx, [edi + 0x14]
jb 0x40b83a
mov edx, dword [edx]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
call fcn.0040bc70
lea ecx, [ebp - 0x24]
call fcn.0040b8f0
mov eax, dword [ebp - 0x24]
push 8
push eax
mov dword [ebp - 0x24], 0
call fcn.004165af
mov edx, dword [ebp - 0x2c]
add esp, 8
cmp edx, 8
jb 0x40b89d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b893
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b8b8
push edx
push ecx
call fcn.004165af
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
call fcn.00419a7c
call fcn.00409d80
int3