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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d41b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70c
mov eax, dword [0x439f2c]
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 0x10]
lea eax, [edi + 0x10]
cmp ecx, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x1c], eax
jne 0x4058d4
lea ecx, [ebp - 0xa4]
mov dword [eax], ecx
call fcn.0042b2d0
mov ecx, dword [eax + 4]
call fcn.00424f50
mov edx, dword [0x439f2c]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
mov byte [ebp - 4], 1
call fcn.00406450
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00423de5
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00423cf8
mov eax, dword [0x439f2c]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 0x42fb34
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], esi
push 0xa
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.00406d70
push esi
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 6
mov dword [ebp - 0x98], 0x42fb30
call fcn.004046c0
mov eax, dword [0x439f2c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 9
push ecx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x18], esi
call fcn.004046c0
test al, al
je 0x405ae7
push str.IR_ZCD
lea ecx, [ebp - 0x98]
call fcn.004048f0
test al, al
je 0x405ae7
mov ebx, dword [ebp - 0x74]
xor edx, edx
cmp ebx, esi
push 0x438494
setne dl
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x68], edx
call fcn.00404950
test al, al
je 0x4059fa
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x98]
push eax
call fcn.00406410
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.00423de5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00423cf8
mov ebx, dword [ebp - 0x74]
xor ecx, ecx
cmp ebx, esi
push str.Title
setne cl
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
call fcn.00404950
test al, al
je 0x405a4c
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x98]
push edx
call fcn.00406410
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.00423de5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00423cf8
mov ebx, dword [ebp - 0x74]
xor eax, eax
cmp ebx, esi
push str.Prog
setne al
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x68], eax
call fcn.00404950
test al, al
je 0x405a98
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x98]
call fcn.00406410
mov eax, dword [eax]
push eax
call fcn.00415877
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00423cf8
mov ebx, dword [ebp - 0x74]
xor edx, edx
cmp ebx, esi
push str.UsePW
setne dl
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x68], edx
call fcn.00404950
test al, al
je 0x405ae7
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x98]
push eax
call fcn.00406410
mov eax, dword [eax]
push eax
call fcn.00415877
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00423cf8
mov eax, dword [edi + 8]
cmp eax, esi
je 0x405b14
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405b14
mov eax, dword [ebp - 0x34]
cmp dword [eax - 8], esi
je 0x405b07
push eax
jmp 0x405b0c
push str.Loading
mov ecx, dword [edi + 8]
call fcn.004243e9
lea edx, [ebp - 0x14]
mov ecx, edi
push edx
call fcn.00406830
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xc
call fcn.00423de5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00423cf8
lea ecx, [ebp - 0x330]
call fcn.00407130
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xd
call fcn.0040c220
push 0xa
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xe
call fcn.00423459
push 0xa
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0xf
call fcn.00423459
mov eax, dword [edi + 0x14]
push esi
push 1
push eax
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 0x11
call fcn.00407470
mov eax, dword [edi + 4]
mov dword [ebp - 4], 0x10
cmp eax, esi
je 0x405ba6
push 8
push eax
lea ecx, [ebp - 0x330]
call fcn.00407c80
xor ebx, ebx
mov ecx, dword [ebp - 0x220]
mov eax, esi
and eax, 0xffff
cmp eax, ecx
jge 0x405bee
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
cmp dword [edx], 0
jne 0x405bee
lea eax, [ebp - 0x130]
push esi
push eax
lea ecx, [ebp - 0x330]
call fcn.00407640
lea ecx, [ebp - 0x130]
call fcn.0040c8f0
test al, al
jne 0x405beb
add ebx, dword [ebp - 0x114]
inc esi
jmp 0x405ba8
mov eax, dword [edi + 0xc]
test eax, eax
je 0x405c18
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405c18
mov eax, dword [edi + 0xc]
push ebx
push 0
push 0x406
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
mov ecx, dword [ebp - 0x220]
mov eax, esi
and eax, 0xffff
mov dword [ebp - 0x14], esi
cmp eax, ecx
jge 0x405d9b
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
cmp dword [edx], 0
jne 0x405d9b
lea eax, [ebp - 0x130]
push esi
push eax
lea ecx, [ebp - 0x330]
call fcn.00407640
lea ecx, [ebp - 0x130]
call fcn.0040c8f0
test al, al
jne 0x405cb1
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0x10
test al, 1
je 0x405c83
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0xa8]
and al, 0xfe
mov dword [ebp - 0x24], eax
call fcn.00423cf8
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x130]
call fcn.0040c870
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0x1a
call fcn.00423561
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xa0]
jmp 0x405cdd
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x130]
push edx
call fcn.0040c870
push eax
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x1b
call fcn.00423561
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x9c]
call fcn.00423cf8
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x1c
test eax, eax
je 0x405cfd
push str.Bf8FeA49_34j4_4er73
lea ecx, [ebp - 0x330]
call fcn.00408760
mov eax, dword [ebp - 0x20]
push 0x10000
push 0
push 1
push eax
push esi
lea ecx, [ebp - 0x330]
call fcn.00407fa0
mov dword [ebp - 4], 0x10
inc esi
jmp 0x405c1a
push 0
push 0
lea ecx, [ebp - 0x330]
call fcn.00407af0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx - 8]
test eax, eax
je 0x405f49
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
cmp dword [eax], 0
jne 0x405f49
mov eax, dword [edi + 8]
test eax, eax
je 0x405de5
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405de5
mov ecx, dword [edi + 8]
push 0
call fcn.0042445f
mov edx, dword [0x439f2c]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x20]
push 0x4380c0
lea ecx, [ebp - 0x40]
push eax
push ecx
mov byte [ebp - 4], 0x1e
call fcn.00423f41
lea edx, [ebp - 0x28]
mov bl, 0x1f
push edx
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], bl
push eax
call fcn.00423edb
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x20
call fcn.00423de5
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00423cf8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x1e
call fcn.00423cf8
mov eax, dword [0x439f2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [0x43fa64]
mov esi, 1
mov bl, 0x22
cmp eax, esi
mov byte [ebp - 4], bl
jle 0x405e9b
mov ecx, dword [0x43fa68]
mov edx, dword [ecx + esi*4]
lea ecx, [ebp - 0x18]
push edx
call fcn.00423e35
push 0x4383d0
lea ecx, [ebp - 0x1c]
call fcn.00424088
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004240c4
push 0x43845c
lea ecx, [ebp - 0x1c]
call fcn.00424088
mov eax, dword [0x43fa64]
inc esi
cmp esi, eax
jl 0x405e59
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405f25
mov edx, dword [0x439f2c]
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], 0x23
call fcn.0042318e
add esp, 0xc
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push edx
call fcn.004240c4
push 0x4383d4
lea ecx, [ebp - 0x1c]
call fcn.00423236
push 0x4383d4
lea ecx, [ebp - 0x1c]
call fcn.004231a1
call fcn.0042b2d0
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
push 0xf
push 0
push 1
push eax
push ecx
push edx
call fcn.00406970
add esp, 0x18
lea ecx, [ebp - 0x14]
mov dword [esi + 0xc8], eax
mov byte [ebp - 4], bl
call fcn.00423cf8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x21
call fcn.00423cf8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x1e
call fcn.00423cf8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x10
call fcn.00423cf8
lea ecx, [ebp - 0x18c]
call fcn.00402840
mov eax, dword [0x439f2c]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x20]
push str..
lea edx, [ebp - 0x30]
mov bl, 0x25
push ecx
push edx
mov byte [ebp - 4], bl
call fcn.00423f41
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x26
call fcn.00423de5
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00423cf8
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x188]
push eax
call fcn.00423de5
mov eax, 1
lea ecx, [ebp - 0x18c]
push eax
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], eax
call fcn.004029f0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.0042b2d0
mov ecx, dword [eax + 4]
call fcn.00424f65
mov edx, dword [edi + 0x10]
xor ebx, ebx
cmp dword [edx], ebx
je 0x40600d
mov eax, dword [edi + 8]
xor esi, esi
cmp eax, ebx
je 0x405ffa
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405ffa
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 ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x24
call fcn.00423cf8
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0x10
call fcn.00402910
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0xf
call fcn.004234cd
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xe
call fcn.004234cd
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xd
call fcn.0040c290
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 9
call fcn.00407360
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
call fcn.00423cf8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00423cf8
mov dword [ebp - 0x98], 0x42fb30
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x42fb24
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 0x2a
cmp eax, ebx
je 0x4060e9
mov ecx, dword [ebp - 0x54]
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0x18], eax
jbe 0x4060e9
mov edx, dword [edi + 4]
mov esi, dword [edx + eax*4]
cmp esi, ebx
je 0x4060de
lea ecx, [esi + 0xc]
xor eax, eax
add ecx, 0xc
mov edx, eax
dec eax
test edx, edx
jne 0x4060c0
lea eax, [esi + 8]
push 1
push eax
call fcn.0042330f
mov esi, dword [esi]
cmp esi, ebx
jne 0x4060bb
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 8]
inc eax
cmp eax, ecx
mov dword [ebp - 0x18], eax
jb 0x4060b1
mov eax, dword [edi + 4]
push eax
call fcn.00424308
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.00423443
lea esi, [ebp - 0x8c]
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x8c], 0x42fb34
mov ecx, dword [ebp - 0x88]
mov byte [ebp - 4], 0x2b
cmp ecx, ebx
je 0x40614d
mov edx, dword [ebp - 0x84]
cmp edx, ebx
lea eax, [edx - 1]
je 0x406141
add ecx, 0x20
mov edx, eax
dec eax
test edx, edx
jne 0x406137
mov eax, dword [esi + 4]
push eax
call fcn.00424308
add esp, 4
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x27
call fcn.00423cf8
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00423cf8
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00423cf8
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00423cf8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret