Function at 0x4058e0
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 0x405934
lea ecx, [ebp - 0xa4]
mov dword [eax], ecx
call fcn.0042b2d5
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.004064a0
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], 0x42fb2c
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.00406d90
push esi
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 6
mov dword [ebp - 0x98], 0x42fb28
call fcn.00404720
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.00404720
test al, al
je 0x405b47
push str.IR_ZCD
lea ecx, [ebp - 0x98]
call fcn.00404950
test al, al
je 0x405b47
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.004049b0
test al, al
je 0x405a5a
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x98]
push eax
call fcn.00406460
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.004049b0
test al, al
je 0x405aac
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x98]
push edx
call fcn.00406460
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.004049b0
test al, al
je 0x405af8
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x98]
call fcn.00406460
mov eax, dword [eax]
push eax
call fcn.00415887
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.004049b0
test al, al
je 0x405b47
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x98]
push eax
call fcn.00406460
mov eax, dword [eax]
push eax
call fcn.00415887
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00423cf8
mov eax, dword [edi + 8]
cmp eax, esi
je 0x405b74
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405b74
mov eax, dword [ebp - 0x34]
cmp dword [eax - 8], esi
je 0x405b67
push eax
jmp 0x405b6c
push str.Loading
mov ecx, dword [edi + 8]
call fcn.004243e9
lea edx, [ebp - 0x14]
mov ecx, edi
push edx
call fcn.00406880
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.00407150
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xd
call fcn.0040c230
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.00407490
mov eax, dword [edi + 4]
mov dword [ebp - 4], 0x10
cmp eax, esi
je 0x405c06
push 8
push eax
lea ecx, [ebp - 0x330]
call fcn.00407ca0
xor ebx, ebx
mov ecx, dword [ebp - 0x220]
mov eax, esi
and eax, 0xffff
cmp eax, ecx
jge 0x405c4e
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
cmp dword [edx], 0
jne 0x405c4e
lea eax, [ebp - 0x130]
push esi
push eax
lea ecx, [ebp - 0x330]
call fcn.00407660
lea ecx, [ebp - 0x130]
call fcn.0040c900
test al, al
jne 0x405c4b
add ebx, dword [ebp - 0x114]
inc esi
jmp 0x405c08
mov eax, dword [edi + 0xc]
test eax, eax
je 0x405c78
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405c78
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 0x405dfb
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
cmp dword [edx], 0
jne 0x405dfb
lea eax, [ebp - 0x130]
push esi
push eax
lea ecx, [ebp - 0x330]
call fcn.00407660
lea ecx, [ebp - 0x130]
call fcn.0040c900
test al, al
jne 0x405d11
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0x10
test al, 1
je 0x405ce3
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.0040c880
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0x1a
call fcn.00423561
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xa0]
jmp 0x405d3d
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x130]
push edx
call fcn.0040c880
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 0x405d5d
push str.Bf8FeA49_34j4_4er73
lea ecx, [ebp - 0x330]
call fcn.00408770
mov eax, dword [ebp - 0x20]
push 0x10000
push 0
push 1
push eax
push esi
lea ecx, [ebp - 0x330]
call fcn.00407fc0
mov dword [ebp - 4], 0x10
inc esi
jmp 0x405c7a
push 0
push 0
lea ecx, [ebp - 0x330]
call fcn.00407b10
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx - 8]
test eax, eax
je 0x405f9b
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
cmp dword [eax], 0
jne 0x405f9b
mov eax, dword [edi + 8]
test eax, eax
je 0x405e45
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405e45
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 0x405efb
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 0x405eb9
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405f77
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
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.004069c0
add esp, 0x18
lea ecx, [ebp - 0x14]
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.004028c0
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.00402a70
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.0042b2d5
mov ecx, dword [eax + 4]
call fcn.00424f65
mov edx, dword [edi + 0x10]
xor ebx, ebx
cmp dword [edx], ebx
je 0x40605f
mov eax, dword [edi + 8]
xor esi, esi
cmp eax, ebx
je 0x40604c
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40604c
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.00402990
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.0040c2a0
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 9
call fcn.00407380
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], 0x42fb28
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x42fb1c
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 0x2a
cmp eax, ebx
je 0x40613b
mov ecx, dword [ebp - 0x54]
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0x18], eax
jbe 0x40613b
mov edx, dword [edi + 4]
mov esi, dword [edx + eax*4]
cmp esi, ebx
je 0x406130
lea ecx, [esi + 0xc]
xor eax, eax
add ecx, 0xc
mov edx, eax
dec eax
test edx, edx
jne 0x406112
lea eax, [esi + 8]
push 1
push eax
call fcn.0042330f
mov esi, dword [esi]
cmp esi, ebx
jne 0x40610d
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 8]
inc eax
cmp eax, ecx
mov dword [ebp - 0x18], eax
jb 0x406103
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], 0x42fb2c
mov ecx, dword [ebp - 0x88]
mov byte [ebp - 4], 0x2b
cmp ecx, ebx
je 0x40619f
mov edx, dword [ebp - 0x84]
cmp edx, ebx
lea eax, [edx - 1]
je 0x406193
add ecx, 0x20
mov edx, eax
dec eax
test edx, edx
jne 0x406189
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