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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d40b
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 0x405924
lea ecx, [ebp - 0xa4]
mov dword [eax], ecx
call fcn.0042b2c5
mov ecx, dword [eax + 4]
call fcn.00424f40
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.00406490
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00423dd5
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00423ce8
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.00406d80
push esi
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 6
mov dword [ebp - 0x98], 0x42fb28
call fcn.00404710
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.00404710
test al, al
je 0x405b37
push str.IR_ZCD
lea ecx, [ebp - 0x98]
call fcn.00404940
test al, al
je 0x405b37
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.004049a0
test al, al
je 0x405a4a
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x98]
push eax
call fcn.00406450
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.00423dd5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00423ce8
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.004049a0
test al, al
je 0x405a9c
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x98]
push edx
call fcn.00406450
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.00423dd5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00423ce8
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.004049a0
test al, al
je 0x405ae8
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x98]
call fcn.00406450
mov eax, dword [eax]
push eax
call fcn.00415877
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00423ce8
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.004049a0
test al, al
je 0x405b37
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x98]
push eax
call fcn.00406450
mov eax, dword [eax]
push eax
call fcn.00415877
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00423ce8
mov eax, dword [edi + 8]
cmp eax, esi
je 0x405b64
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405b64
mov eax, dword [ebp - 0x34]
cmp dword [eax - 8], esi
je 0x405b57
push eax
jmp 0x405b5c
push str.Loading
mov ecx, dword [edi + 8]
call fcn.004243d9
lea edx, [ebp - 0x14]
mov ecx, edi
push edx
call fcn.00406870
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xc
call fcn.00423dd5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00423ce8
lea ecx, [ebp - 0x330]
call fcn.00407140
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.00423449
push 0xa
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0xf
call fcn.00423449
mov eax, dword [edi + 0x14]
push esi
push 1
push eax
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 0x11
call fcn.00407480
mov eax, dword [edi + 4]
mov dword [ebp - 4], 0x10
cmp eax, esi
je 0x405bf6
push 8
push eax
lea ecx, [ebp - 0x330]
call fcn.00407c90
xor ebx, ebx
mov ecx, dword [ebp - 0x220]
mov eax, esi
and eax, 0xffff
cmp eax, ecx
jge 0x405c3e
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
cmp dword [edx], 0
jne 0x405c3e
lea eax, [ebp - 0x130]
push esi
push eax
lea ecx, [ebp - 0x330]
call fcn.00407650
lea ecx, [ebp - 0x130]
call fcn.0040c8f0
test al, al
jne 0x405c3b
add ebx, dword [ebp - 0x114]
inc esi
jmp 0x405bf8
mov eax, dword [edi + 0xc]
test eax, eax
je 0x405c68
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405c68
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 0x405deb
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
cmp dword [edx], 0
jne 0x405deb
lea eax, [ebp - 0x130]
push esi
push eax
lea ecx, [ebp - 0x330]
call fcn.00407650
lea ecx, [ebp - 0x130]
call fcn.0040c8f0
test al, al
jne 0x405d01
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0x10
test al, 1
je 0x405cd3
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0xa8]
and al, 0xfe
mov dword [ebp - 0x24], eax
call fcn.00423ce8
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.00423551
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xa0]
jmp 0x405d2d
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.00423551
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x9c]
call fcn.00423ce8
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x1c
test eax, eax
je 0x405d4d
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.00407fb0
mov dword [ebp - 4], 0x10
inc esi
jmp 0x405c6a
push 0
push 0
lea ecx, [ebp - 0x330]
call fcn.00407b00
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx - 8]
test eax, eax
je 0x405f8b
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
cmp dword [eax], 0
jne 0x405f8b
mov eax, dword [edi + 8]
test eax, eax
je 0x405e35
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405e35
mov ecx, dword [edi + 8]
push 0
call fcn.0042444f
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.00423f31
lea edx, [ebp - 0x28]
mov bl, 0x1f
push edx
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], bl
push eax
call fcn.00423ecb
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x20
call fcn.00423dd5
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00423ce8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x1e
call fcn.00423ce8
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 0x405eeb
mov ecx, dword [0x43fa68]
mov edx, dword [ecx + esi*4]
lea ecx, [ebp - 0x18]
push edx
call fcn.00423e25
push 0x4383d0
lea ecx, [ebp - 0x1c]
call fcn.00424078
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004240b4
push 0x43845c
lea ecx, [ebp - 0x1c]
call fcn.00424078
mov eax, dword [0x43fa64]
inc esi
cmp esi, eax
jl 0x405ea9
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405f67
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.0042317e
add esp, 0xc
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push edx
call fcn.004240b4
push 0x4383d4
lea ecx, [ebp - 0x1c]
call fcn.00423226
push 0x4383d4
lea ecx, [ebp - 0x1c]
call fcn.00423191
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.004069b0
add esp, 0x18
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00423ce8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x21
call fcn.00423ce8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x1e
call fcn.00423ce8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x10
call fcn.00423ce8
lea ecx, [ebp - 0x18c]
call fcn.004028b0
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.00423f31
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x26
call fcn.00423dd5
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00423ce8
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x188]
push eax
call fcn.00423dd5
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.00402a60
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.0042b2c5
mov ecx, dword [eax + 4]
call fcn.00424f55
mov edx, dword [edi + 0x10]
xor ebx, ebx
cmp dword [edx], ebx
je 0x40604f
mov eax, dword [edi + 8]
xor esi, esi
cmp eax, ebx
je 0x40603c
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40603c
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.00423ce8
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0x10
call fcn.00402980
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0xf
call fcn.004234bd
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xe
call fcn.004234bd
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xd
call fcn.0040c290
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 9
call fcn.00407370
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
call fcn.00423ce8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00423ce8
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 0x40612b
mov ecx, dword [ebp - 0x54]
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0x18], eax
jbe 0x40612b
mov edx, dword [edi + 4]
mov esi, dword [edx + eax*4]
cmp esi, ebx
je 0x406120
lea ecx, [esi + 0xc]
xor eax, eax
add ecx, 0xc
mov edx, eax
dec eax
test edx, edx
jne 0x406102
lea eax, [esi + 8]
push 1
push eax
call fcn.004232ff
mov esi, dword [esi]
cmp esi, ebx
jne 0x4060fd
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 8]
inc eax
cmp eax, ecx
mov dword [ebp - 0x18], eax
jb 0x4060f3
mov eax, dword [edi + 4]
push eax
call fcn.004242f8
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.00423433
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 0x40618f
mov edx, dword [ebp - 0x84]
cmp edx, ebx
lea eax, [edx - 1]
je 0x406183
add ecx, 0x20
mov edx, eax
dec eax
test edx, edx
jne 0x406179
mov eax, dword [esi + 4]
push eax
call fcn.004242f8
add esp, 4
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x27
call fcn.00423ce8
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00423ce8
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00423ce8
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00423ce8
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