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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cebb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x708
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x439f34]
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 0x10]
lea eax, [edi + 0x10]
cmp ecx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x24], eax
jne 0x4055d4
lea ecx, [ebp - 0xa4]
mov dword [eax], ecx
call fcn.0042ad9b
mov ecx, dword [eax + 4]
call fcn.00424a25
mov edx, dword [0x439f34]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
mov byte [ebp - 4], 1
call fcn.00406140
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004238b5
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004237c8
mov eax, dword [0x439f34]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 0x42fb24
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
push 0xa
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.004069f0
push ebx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 6
mov dword [ebp - 0x98], 0x42fb20
call fcn.00404410
mov eax, dword [0x439f34]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 9
push ecx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x18], ebx
call fcn.00404410
test al, al
je 0x4057e7
push str.IR_ZCD
lea ecx, [ebp - 0x98]
call fcn.00404640
test al, al
je 0x4057e7
mov esi, dword [ebp - 0x74]
xor edx, edx
cmp esi, ebx
push 0x438490
setne dl
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x68], edx
call fcn.004046a0
test al, al
je 0x4056fa
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x98]
push eax
call fcn.00406100
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.004238b5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004237c8
mov esi, dword [ebp - 0x74]
xor ecx, ecx
cmp esi, ebx
push str.Title
setne cl
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call fcn.004046a0
test al, al
je 0x40574c
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x98]
push edx
call fcn.00406100
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
call fcn.004238b5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004237c8
mov esi, dword [ebp - 0x74]
xor eax, eax
cmp esi, ebx
push str.Prog
setne al
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x68], eax
call fcn.004046a0
test al, al
je 0x405798
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x98]
call fcn.00406100
mov eax, dword [eax]
push eax
call fcn.00415347
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.004237c8
mov esi, dword [ebp - 0x74]
xor edx, edx
cmp esi, ebx
push str.UsePW
setne dl
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x68], edx
call fcn.004046a0
test al, al
je 0x4057e7
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x98]
push eax
call fcn.00406100
mov eax, dword [eax]
push eax
call fcn.00415347
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.004237c8
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x405816
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405816
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax - 8]
cmp ecx, ebx
mov ecx, dword [edi + 8]
je 0x40580c
push eax
jmp 0x405811
push str.Loading
call fcn.00423eb9
lea edx, [ebp - 0x14]
mov ecx, edi
push edx
call fcn.00406520
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xc
call fcn.004238b5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004237c8
lea ecx, [ebp - 0x32c]
call fcn.00406d80
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xd
call fcn.0040bcf0
push 0xa
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xe
call fcn.00422f29
push 0xa
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0xf
call fcn.00422f29
mov eax, dword [edi + 0x14]
push ebx
push 1
push eax
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 0x11
call fcn.004070c0
mov eax, dword [edi + 4]
mov dword [ebp - 4], 0x10
cmp eax, ebx
je 0x4058a8
push 8
push eax
lea ecx, [ebp - 0x32c]
call fcn.004078d0
mov dword [ebp - 0x14], ebx
xor esi, esi
mov ecx, dword [ebp - 0x21c]
mov eax, esi
and eax, 0xffff
cmp eax, ecx
jge 0x4058fc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
cmp dword [edx], ebx
jne 0x4058fc
lea eax, [ebp - 0x130]
push esi
push eax
lea ecx, [ebp - 0x32c]
call fcn.00407290
lea ecx, [ebp - 0x130]
call fcn.0040c3c0
test al, al
jne 0x4058f7
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x14], eax
inc esi
xor ebx, ebx
jmp 0x4058ad
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x405928
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405928
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
mov edx, dword [eax + 0x1c]
push 0x406
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
mov ecx, dword [ebp - 0x21c]
mov eax, esi
and eax, 0xffff
mov dword [ebp - 0x14], esi
cmp eax, ecx
jge 0x405aaa
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
cmp dword [edx], ebx
jne 0x405aaa
lea eax, [ebp - 0x130]
push esi
push eax
lea ecx, [ebp - 0x32c]
call fcn.00407290
lea ecx, [ebp - 0x130]
call fcn.0040c3c0
test al, al
jne 0x4059bc
mov al, byte [ebp - 0x1c]
mov dword [ebp - 4], 0x10
test al, 1
je 0x405992
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0xa8]
and al, 0xfe
mov dword [ebp - 0x1c], eax
call fcn.004237c8
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x130]
call fcn.0040c340
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0x1a
call fcn.00423031
lea ecx, [ebp - 0xa0]
jmp 0x4059e4
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x130]
push edx
call fcn.0040c340
push eax
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x1b
call fcn.00423031
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x10
call fcn.004237c8
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x1c
test eax, eax
je 0x405a08
push str.Bf8FeA49_34j4_4er73
lea ecx, [ebp - 0x32c]
call fcn.00408340
mov eax, dword [ebp - 0x20]
push 0x10000
push 0
push 1
push eax
push esi
lea ecx, [ebp - 0x32c]
call fcn.00407be0
inc esi
mov dword [ebp - 4], 0x10
xor ebx, ebx
jmp 0x40592a
push ebx
push ebx
lea ecx, [ebp - 0x32c]
call fcn.00407740
mov ecx, dword [ebp - 0x28]
cmp dword [ecx - 8], ebx
je 0x405c46
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
cmp dword [eax], ebx
jne 0x405c46
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x405aee
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405aee
mov ecx, dword [edi + 8]
push ebx
call fcn.00423f2f
mov edx, dword [0x439f34]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x20]
push 0x4380c0
lea ecx, [ebp - 0x40]
push eax
push ecx
mov byte [ebp - 4], 0x1e
call fcn.00423a11
lea edx, [ebp - 0x28]
mov bl, 0x1f
push edx
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], bl
push eax
call fcn.004239ab
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x20
call fcn.004238b5
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004237c8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x1e
call fcn.004237c8
mov eax, dword [0x439f34]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [0x43fa74]
mov esi, 1
mov bl, 0x22
cmp eax, esi
mov byte [ebp - 4], bl
jle 0x405ba4
mov ecx, dword [0x43fa78]
mov edx, dword [ecx + esi*4]
lea ecx, [ebp - 0x18]
push edx
call fcn.00423905
push 0x4383d0
lea ecx, [ebp - 0x1c]
call fcn.00423b58
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00423b94
push 0x438458
lea ecx, [ebp - 0x1c]
call fcn.00423b58
mov eax, dword [0x43fa74]
inc esi
cmp esi, eax
jl 0x405b62
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405c20
mov edx, dword [0x439f34]
mov dword [ebp - 0x24], edx
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x24]
push eax
push str._SFXSOURCE:_s_
push ecx
mov byte [ebp - 4], 0x23
call fcn.00422c5e
add esp, 0xc
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00423b94
push 0x4383d4
lea ecx, [ebp - 0x1c]
call fcn.00422d06
push 0x4383d4
lea ecx, [ebp - 0x1c]
call fcn.00422c71
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
push 0xf
push 0
push 1
push eax
push ecx
push edx
call fcn.00406660
add esp, 0x18
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.004237c8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x21
call fcn.004237c8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x1e
call fcn.004237c8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x10
call fcn.004237c8
xor ebx, ebx
lea ecx, [ebp - 0x188]
call fcn.00402760
mov eax, dword [0x439f34]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x20]
push str..
lea edx, [ebp - 0x2c]
push ecx
push edx
mov byte [ebp - 4], 0x25
call fcn.00423a11
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x26
call fcn.004238b5
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x25
call fcn.004237c8
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x184]
push eax
call fcn.004238b5
mov eax, 1
lea ecx, [ebp - 0x188]
push eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], eax
call fcn.00402910
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.0042ad9b
mov ecx, dword [eax + 4]
call fcn.00424a3a
mov edx, dword [edi + 0x10]
cmp dword [edx], ebx
je 0x405d08
mov eax, dword [edi + 8]
xor esi, esi
cmp eax, ebx
je 0x405cf5
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405cf5
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.004237c8
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 0x10
call fcn.00402830
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0xf
call fcn.00422f9d
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xe
call fcn.00422f9d
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xd
call fcn.0040bd60
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 9
call fcn.00406fb0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.004237c8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.004237c8
mov dword [ebp - 0x98], 0x42fb20
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x42fb14
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 0x2a
cmp eax, ebx
je 0x405de5
mov ecx, dword [ebp - 0x54]
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0x18], eax
jbe 0x405de5
mov edx, dword [edi + 4]
mov esi, dword [edx + eax*4]
cmp esi, ebx
je 0x405dda
mov eax, 1
lea ecx, [esi + 0xc]
dec eax
add ecx, 0xc
cmp eax, ebx
jne 0x405dbe
lea eax, [esi + 8]
push 1
push eax
call fcn.00422ddf
mov esi, dword [esi]
cmp esi, ebx
jne 0x405db6
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 8]
inc eax
cmp eax, ecx
mov dword [ebp - 0x18], eax
jb 0x405dac
mov eax, dword [edi + 4]
push eax
call fcn.00423dd8
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.00422f13
lea edx, [ebp - 0x8c]
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x8c], 0x42fb24
mov ecx, dword [ebp - 0x88]
mov byte [ebp - 4], 0x2b
cmp ecx, ebx
je 0x405e44
mov eax, dword [ebp - 0x84]
cmp eax, ebx
je 0x405e38
dec eax
add ecx, 0x20
cmp eax, ebx
jne 0x405e30
mov eax, dword [edx + 4]
push eax
call fcn.00423dd8
add esp, 4
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x27
call fcn.004237c8
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.004237c8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.004237c8
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.004237c8
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