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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e226
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 0x4065a4
lea ecx, [ebp - 0xa8]
mov dword [eax], ecx
call fcn.0042c075
mov ecx, dword [eax + 4]
call fcn.004263b7
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.00424b85
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00424a98
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.00404800
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.00404800
test al, al
je 0x406863
push str.IR_ZCD
lea ecx, [ebp - 0xa0]
call fcn.00404a30
test al, al
je 0x406863
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.00404a90
test al, al
je 0x4066d6
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xa0]
push eax
call fcn.004071c0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call fcn.00424b85
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00424a98
mov ebx, dword [ebp - 0x7c]
xor ecx, ecx
cmp ebx, esi
push str.Title
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.00404a90
test al, al
je 0x406728
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xa0]
push edx
call fcn.004071c0
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xd
call fcn.00424b85
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00424a98
mov ebx, dword [ebp - 0x7c]
xor eax, eax
cmp ebx, esi
push str.Prog
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.00404a90
test al, al
je 0x406774
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.004071c0
mov eax, dword [eax]
push eax
call fcn.00416627
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00424a98
mov ebx, dword [ebp - 0x7c]
xor edx, edx
cmp ebx, esi
push str.UsePW
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.00404a90
test al, al
je 0x4067c3
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xa0]
push eax
call fcn.004071c0
mov eax, dword [eax]
push eax
call fcn.00416627
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00424a98
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.00404a90
test al, al
je 0x406863
lea ecx, [ebp - 0x3a0]
call fcn.00403cf0
lea edx, [ebp - 0x14]
mov bl, 0xe
push edx
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], bl
call fcn.004071c0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
call fcn.00424b85
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00424a98
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
mov eax, dword [eax - 8]
push eax
push 0xa
call fcn.00424e7c
lea ecx, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x3a0]
call fcn.00403d00
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.00424b85
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00424a98
mov byte [ebp - 4], 0xb
xor esi, esi
mov eax, dword [edi + 8]
cmp eax, esi
je 0x406890
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406890
mov eax, dword [ebp - 0x44]
cmp dword [eax - 8], esi
je 0x406883
push eax
jmp 0x406888
push str.Loading
mov ecx, dword [edi + 8]
call fcn.00425189
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.00424b85
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00424a98
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.004241f9
push 0xa
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x14
call fcn.004241f9
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 0x406922
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 0x40696b
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
cmp dword [eax], 0
jne 0x40696b
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 0x406968
add ebx, dword [ebp - 0x11c]
inc esi
jmp 0x406924
mov eax, dword [edi + 0xc]
test eax, eax
je 0x406995
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406995
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 0x406b18
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
cmp dword [eax], 0
jne 0x406b18
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 0x406a2f
mov al, byte [ebp - 0x20]
mov dword [ebp - 4], 0x15
test al, 1
je 0x406a01
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0xb0]
and al, 0xfe
mov dword [ebp - 0x20], eax
call fcn.00424a98
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.00424301
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xa4]
jmp 0x406a5b
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.00424301
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xac]
call fcn.00424a98
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x21
test eax, eax
je 0x406a7a
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 0x406997
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 0x406cc6
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
cmp dword [eax], 0
jne 0x406cc6
mov eax, dword [edi + 8]
test eax, eax
je 0x406b62
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406b62
mov ecx, dword [edi + 8]
push 0
call fcn.004251ff
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.00424ce1
lea edx, [ebp - 0x2c]
mov bl, 0x24
push edx
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], bl
push eax
call fcn.00424c7b
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x25
call fcn.00424b85
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00424a98
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x23
call fcn.00424a98
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 0x406c18
mov ecx, dword [0x440aa8]
mov edx, dword [ecx + esi*4]
lea ecx, [ebp - 0x18]
push edx
call fcn.00424bd5
push 0x4393d8
lea ecx, [ebp - 0x1c]
call fcn.00424e28
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00424e64
push 0x4394a4
lea ecx, [ebp - 0x1c]
call fcn.00424e28
mov eax, dword [0x440aa4]
inc esi
cmp esi, eax
jl 0x406bd6
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406ca2
mov edx, dword [0x43af64]
mov dword [ebp - 0x14], edx
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x14]
push eax
push str._SFXSOURCE:_s_
push ecx
mov byte [ebp - 4], 0x28
call fcn.00423f2e
add esp, 0xc
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00424e64
push 0x4393dc
lea ecx, [ebp - 0x1c]
call fcn.00423fd6
push 0x4393dc
lea ecx, [ebp - 0x1c]
call fcn.00423f41
call fcn.0042c075
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.00424a98
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x26
call fcn.00424a98
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x23
call fcn.00424a98
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x15
call fcn.00424a98
lea ecx, [ebp - 0x194]
call fcn.00402840
mov eax, dword [0x43af64]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x24]
push str..
lea edx, [ebp - 0x38]
mov bl, 0x2a
push ecx
push edx
mov byte [ebp - 4], bl
call fcn.00424ce1
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x2b
call fcn.00424b85
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00424a98
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x190]
push eax
call fcn.00424b85
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.004029f0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.0042c075
mov ecx, dword [eax + 4]
call fcn.004263cc
mov edx, dword [edi + 0x10]
cmp dword [edx], 0
je 0x406d89
mov eax, dword [edi + 8]
xor esi, esi
test eax, eax
je 0x406d76
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406d76
mov ecx, dword [edi + 8]
mov esi, dword [ecx + 0x1c]
push 0x30
push str.Status
push str.Extraction_Cancelled
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.00424a98
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 0x15
call fcn.00402910
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x14
call fcn.0042426d
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x13
call fcn.0042426d
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.00424a98
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00424a98
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.00424a98
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00424a98
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 0x406e87
mov ecx, dword [ebp - 0x5c]
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0x18], eax
jbe 0x406e87
mov edx, dword [edi + 4]
mov esi, dword [edx + eax*4]
cmp esi, ebx
je 0x406e7c
lea ecx, [esi + 0xc]
xor eax, eax
add ecx, 0xc
mov edx, eax
dec eax
test edx, edx
jne 0x406e5e
lea eax, [esi + 8]
push 1
push eax
call fcn.004240af
mov esi, dword [esi]
cmp esi, ebx
jne 0x406e59
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 8]
inc eax
cmp eax, ecx
mov dword [ebp - 0x18], eax
jb 0x406e4f
mov eax, dword [edi + 4]
push eax
call fcn.004250a8
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.004241e3
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 0x406eed
mov edx, dword [ebp - 0x8c]
mov ecx, eax
cmp edx, ebx
lea eax, [edx - 1]
je 0x406ee1
add ecx, 0x20
mov edx, eax
dec eax
test edx, edx
jne 0x406ed7
mov eax, dword [esi + 4]
push eax
call fcn.004250a8
add esp, 4
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x2c
call fcn.00424a98
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.00424a98
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00424a98
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00424a98
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