Function at 0x406560
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e2c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x77c
mov eax, dword [0x43af64]
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
mov ecx, dword [edi + 0x10]
lea eax, [edi + 0x10]
cmp ecx, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0x1c], eax
jne 0x4065b4
lea ecx, [ebp - 0xa8]
mov dword [eax], ecx
call fcn.0042c10b
mov ecx, dword [eax + 4]
call fcn.00426427
mov edx, dword [0x43af64]
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
mov byte [ebp - 4], 1
call fcn.00407210
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00424bf5
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00424b08
mov eax, dword [0x43af64]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 0x430b34
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], esi
push 0xa
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.00407b30
push esi
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
mov dword [ebp - 0xa0], 0x430b30
call fcn.00404810
mov eax, dword [0x43af64]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 0xb
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00404810
test al, al
je 0x406873
push 0x4394d0
lea ecx, [ebp - 0xa0]
call fcn.00404a40
test al, al
je 0x406873
mov ebx, dword [ebp - 0x7c]
xor edx, edx
cmp ebx, esi
push 0x4394cc
setne dl
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x70], edx
call fcn.00404aa0
test al, al
je 0x4066e6
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xa0]
push eax
call fcn.004071d0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call fcn.00424bf5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00424b08
mov ebx, dword [ebp - 0x7c]
xor ecx, ecx
cmp ebx, esi
push 0x4394c4
setne cl
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
call fcn.00404aa0
test al, al
je 0x406738
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xa0]
push edx
call fcn.004071d0
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xd
call fcn.00424bf5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00424b08
mov ebx, dword [ebp - 0x7c]
xor eax, eax
cmp ebx, esi
push 0x4394bc
setne al
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x70], eax
call fcn.00404aa0
test al, al
je 0x406784
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.004071d0
mov eax, dword [eax]
push eax
call fcn.00416627
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00424b08
mov ebx, dword [ebp - 0x7c]
xor edx, edx
cmp ebx, esi
push 0x4394b4
setne dl
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x70], edx
call fcn.00404aa0
test al, al
je 0x4067d3
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xa0]
push eax
call fcn.004071d0
mov eax, dword [eax]
push eax
call fcn.00416627
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00424b08
mov ebx, dword [ebp - 0x7c]
xor ecx, ecx
cmp ebx, esi
push 0x4394b0
setne cl
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
call fcn.00404aa0
test al, al
je 0x406873
lea ecx, [ebp - 0x3a0]
call fcn.00403d00
lea edx, [ebp - 0x14]
mov bl, 0xe
push edx
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], bl
call fcn.004071d0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
call fcn.00424bf5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00424b08
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
mov eax, dword [eax - 8]
push eax
push 0xa
call fcn.00424eec
lea ecx, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x3a0]
call fcn.00403d10
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.00424bf5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00424b08
mov byte [ebp - 4], 0xb
xor esi, esi
mov eax, dword [edi + 8]
cmp eax, esi
je 0x4068a0
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4068a0
mov eax, dword [ebp - 0x44]
cmp dword [eax - 8], esi
je 0x406893
push eax
jmp 0x406898
push 0x4394a8
mov ecx, dword [edi + 8]
call fcn.004251f9
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.004075f0
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x11
call fcn.00424bf5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00424b08
lea ecx, [ebp - 0x338]
call fcn.00407ef0
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0x12
call fcn.0040cfd0
push 0xa
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x13
call fcn.00424269
push 0xa
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x14
call fcn.00424269
mov eax, dword [edi + 0x14]
push esi
push 1
push eax
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0x16
call fcn.00408230
mov eax, dword [edi + 4]
mov dword [ebp - 4], 0x15
cmp eax, esi
je 0x406932
push 8
push eax
lea ecx, [ebp - 0x338]
call fcn.00408a40
xor ebx, ebx
mov eax, dword [ebp - 0x228]
mov ecx, esi
and ecx, 0xffff
cmp ecx, eax
jge 0x40697b
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
cmp dword [eax], 0
jne 0x40697b
lea ecx, [ebp - 0x138]
push esi
push ecx
lea ecx, [ebp - 0x338]
call fcn.00408400
lea ecx, [ebp - 0x138]
call fcn.0040d6a0
test al, al
jne 0x406978
add ebx, dword [ebp - 0x11c]
inc esi
jmp 0x406934
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4069a5
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4069a5
mov eax, dword [edi + 0xc]
push ebx
push 0
push 0x406
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
mov eax, dword [ebp - 0x228]
mov ecx, esi
and ecx, 0xffff
mov dword [ebp - 0x14], esi
cmp ecx, eax
jge 0x406b28
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
cmp dword [eax], 0
jne 0x406b28
lea ecx, [ebp - 0x138]
push esi
push ecx
lea ecx, [ebp - 0x338]
call fcn.00408400
lea ecx, [ebp - 0x138]
call fcn.0040d6a0
test al, al
jne 0x406a3f
mov al, byte [ebp - 0x20]
mov dword [ebp - 4], 0x15
test al, 1
je 0x406a11
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0xb0]
and al, 0xfe
mov dword [ebp - 0x20], eax
call fcn.00424b08
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0x138]
push edx
call fcn.0040d620
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x1f
call fcn.00424371
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xa4]
jmp 0x406a6b
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0x138]
push eax
call fcn.0040d620
push eax
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x20
call fcn.00424371
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xac]
call fcn.00424b08
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x21
test eax, eax
je 0x406a8a
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x338]
call fcn.00409510
mov edx, dword [ebp - 0x24]
push 0x10000
push 0
push 1
push edx
push esi
lea ecx, [ebp - 0x338]
call fcn.00408d60
mov dword [ebp - 4], 0x15
inc esi
jmp 0x4069a7
push 0
push 0
lea ecx, [ebp - 0x338]
call fcn.004088b0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x406cd6
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
cmp dword [eax], 0
jne 0x406cd6
mov eax, dword [edi + 8]
test eax, eax
je 0x406b72
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406b72
mov ecx, dword [edi + 8]
push 0
call fcn.0042526f
mov edx, dword [0x43af64]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x24]
push 0x4390c0
lea ecx, [ebp - 0x30]
push eax
push ecx
mov byte [ebp - 4], 0x23
call fcn.00424d51
lea edx, [ebp - 0x2c]
mov bl, 0x24
push edx
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], bl
push eax
call fcn.00424ceb
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x25
call fcn.00424bf5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00424b08
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x23
call fcn.00424b08
mov eax, dword [0x43af64]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [0x440aa4]
mov esi, 1
mov bl, 0x27
cmp eax, esi
mov byte [ebp - 4], bl
jle 0x406c28
mov ecx, dword [0x440aa8]
mov edx, dword [ecx + esi*4]
lea ecx, [ebp - 0x18]
push edx
call fcn.00424c45
push 0x4393d8
lea ecx, [ebp - 0x1c]
call fcn.00424e98
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00424ed4
push 0x4394a4
lea ecx, [ebp - 0x1c]
call fcn.00424e98
mov eax, dword [0x440aa4]
inc esi
cmp esi, eax
jl 0x406be6
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406cb2
mov edx, dword [0x43af64]
mov dword [ebp - 0x14], edx
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x14]
push eax
push 0x439494
push ecx
mov byte [ebp - 4], 0x28
call fcn.00423f9e
add esp, 0xc
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00424ed4
push 0x4393dc
lea ecx, [ebp - 0x1c]
call fcn.00424046
push 0x4393dc
lea ecx, [ebp - 0x1c]
call fcn.00423fb1
call fcn.0042c10b
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
push 0xf
push 0
push 1
push eax
push ecx
push edx
call fcn.00407730
add esp, 0x18
lea ecx, [ebp - 0x14]
mov dword [esi + 0xc8], eax
mov byte [ebp - 4], bl
call fcn.00424b08
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x26
call fcn.00424b08
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x23
call fcn.00424b08
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x15
call fcn.00424b08
lea ecx, [ebp - 0x194]
call fcn.00402850
mov eax, dword [0x43af64]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x24]
push 0x43948c
lea edx, [ebp - 0x38]
mov bl, 0x2a
push ecx
push edx
mov byte [ebp - 4], bl
call fcn.00424d51
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x2b
call fcn.00424bf5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00424b08
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x190]
push eax
call fcn.00424bf5
mov eax, 1
lea ecx, [ebp - 0x194]
push eax
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], eax
call fcn.00402a00
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.0042c10b
mov ecx, dword [eax + 4]
call fcn.0042643c
mov edx, dword [edi + 0x10]
cmp dword [edx], 0
je 0x406d99
mov eax, dword [edi + 8]
xor esi, esi
test eax, eax
je 0x406d86
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406d86
mov ecx, dword [edi + 8]
mov esi, dword [ecx + 0x1c]
push 0x30
push 0x439484
push 0x43946c
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0x29
call fcn.00424b08
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 0x15
call fcn.00402920
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x14
call fcn.004242dd
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x13
call fcn.004242dd
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0x12
call fcn.0040d040
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0xb
call fcn.00408120
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.00424b08
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00424b08
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.00424b08
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00424b08
mov dword [ebp - 0xa0], 0x430b30
lea edi, [ebp - 0x64]
mov dword [ebp - 0x64], 0x430b24
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x60]
xor ebx, ebx
cmp eax, ebx
mov byte [ebp - 4], 0x2f
je 0x406e97
mov ecx, dword [ebp - 0x5c]
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0x18], eax
jbe 0x406e97
mov edx, dword [edi + 4]
mov esi, dword [edx + eax*4]
cmp esi, ebx
je 0x406e8c
lea ecx, [esi + 0xc]
xor eax, eax
add ecx, 0xc
mov edx, eax
dec eax
test edx, edx
jne 0x406e6e
lea eax, [esi + 8]
push 1
push eax
call fcn.0042411f
mov esi, dword [esi]
cmp esi, ebx
jne 0x406e69
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 8]
inc eax
cmp eax, ecx
mov dword [ebp - 0x18], eax
jb 0x406e5f
mov eax, dword [edi + 4]
push eax
call fcn.00425118
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
call fcn.00424253
lea esi, [ebp - 0x94]
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x94], 0x430b34
mov eax, dword [ebp - 0x90]
mov byte [ebp - 4], 0x30
cmp eax, ebx
je 0x406efd
mov edx, dword [ebp - 0x8c]
mov ecx, eax
cmp edx, ebx
lea eax, [edx - 1]
je 0x406ef1
add ecx, 0x20
mov edx, eax
dec eax
test edx, edx
jne 0x406ee7
mov eax, dword [esi + 4]
push eax
call fcn.00425118
add esp, 4
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x2c
call fcn.00424b08
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.00424b08
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00424b08
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00424b08
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret