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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb98
push ebx
push esi
push edi
push 0x412518
push dword [ebp + 8]
mov ecx, 0x4155a0
push 0x414350
call fcn.00407838
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, 0x41230c
mov ebx, 0x412314
push 0
lea ecx, [ebp - 0xa4]
mov dword [0x415624], eax
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x90], ebx
call fcn.00401a43
and dword [ebp - 0x14], 0
and byte [ebp - 1], 0
mov esi, 0x412308
push 0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x58], ebx
call fcn.00401a43
mov dword [ebp - 0xb4], edi
xor edi, edi
push edi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0xac], ebx
call fcn.00401a43
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc0], esi
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 0x10]
call fcn.004066f2
add esp, 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x798]
push dword [ebp + 0x10]
push 0x4145e0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x14]
add esp, 0xc
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp - 0xc]
cmp eax, 1
jne 0x4070bc
push edi
push eax
push 0x4155a0
call fcn.0040a04f
jmp 0x40712c
cmp eax, edi
jne 0x4070cd
push edi
mov ecx, 0x4155a0
call fcn.00406550
jmp 0x40712c
cmp eax, 2
jne 0x407161
mov esi, 0x4155a0
mov ecx, esi
call fcn.004064fc
push edi
push 4
push esi
call fcn.00409a18
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
lea eax, [ebp - 0xe0]
push edi
push eax
call ebx
test eax, eax
je 0x40711a
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push edi
lea eax, [ebp - 0xe0]
push edi
push eax
jmp 0x4070fb
push esi
call fcn.00409aad
push dword [0x415638]
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc0]
call fcn.00401b16
lea ecx, [ebp - 0x6c]
call fcn.00401b16
lea ecx, [ebp - 0xa4]
call fcn.00401b16
mov ecx, 0x4155a0
call fcn.004066d7
xor eax, eax
jmp 0x407831
cmp dword [ebp - 0xc4], edi
jne 0x40718f
push dword [ebp - 0x34]
xor ecx, ecx
cmp eax, 3
lea eax, [ebp - 0x798]
sete cl
push ecx
push eax
call fcn.00406d88
add esp, 0xc
test eax, eax
je 0x40718f
xor esi, esi
jmp 0x407801
and byte [ebp - 8], 0
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x10], edi
call fcn.0040c4a2
test al, al
je 0x4071b1
mov dword [ebp - 0x10], 1
jmp 0x40775a
push edi
push str.file:__
push 7
push edi
lea ecx, [ebp - 0xa4]
call fcn.00403c9d
test eax, eax
jne 0x4071e3
push 7
push edi
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x10], 1
call fcn.0040516a
jmp 0x40775a
cmp dword [ebp - 0xc], 3
jne 0x4071f2
mov byte [ebp - 8], 1
jmp 0x40775a
and byte [ebp - 0x398], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x397]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x398]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x398]
mov edi, 0x41230c
push 0
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ebx
call fcn.0040399e
lea eax, [ebp - 0x398]
mov dword [ebp - 0x30], esi
push eax
call fcn.0040ad86
pop ecx
mov byte [ebp - 1], al
push 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ebx
call fcn.00401a43
lea eax, [ebp - 0x798]
lea ecx, [ebp - 0x11c]
push eax
mov dword [ebp - 0x88], esi
call fcn.00401215
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x154]
push eax
call fcn.0040c5c7
mov eax, dword [ebp - 0x154]
push 1
add eax, 0x10
push 0
push eax
push 0x4145c4
lea ecx, [ebp - 0x11c]
call fcn.00401268
test al, al
je 0x4073b7
cmp byte [ebp - 1], 0
jne 0x40730b
lea ecx, [ebp - 0x11c]
call fcn.0040123f
lea ecx, [ebp - 0x88]
call fcn.00401b16
lea ecx, [ebp - 0x30]
call fcn.00401b16
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc0]
call fcn.00401b16
lea ecx, [ebp - 0x6c]
call fcn.00401b16
lea ecx, [ebp - 0xa4]
call fcn.00401b16
mov ecx, 0x4155a0
call fcn.004066d7
mov eax, 0xffffe889
jmp 0x407831
cmp dword [ebp - 0x78], 0
je 0x40731e
push dword [ebp - 0x78]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x407325
mov esi, 0xffffe889
jmp 0x407394
lea ecx, [ebp - 0x88]
call fcn.0040b306
push 0x4145c0
lea ecx, [ebp - 0x88]
call fcn.0040c4ec
lea eax, [ebp - 0x88]
push eax
call fcn.0040acd8
pop ecx
lea ecx, [ebp - 0x88]
call fcn.00401ffc
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40731e
lea ecx, [ebp - 0x88]
call fcn.00401ffc
mov esi, dword [ebp - 0x84]
lea ecx, [ebp - 0x30]
call fcn.00401ffc
push 1
push 0
push esi
lea ecx, [ebp + 0x10]
push dword [ebp - 0x2c]
call fcn.00407955
xor esi, esi
lea ecx, [ebp - 0x11c]
call fcn.0040123f
lea ecx, [ebp - 0x88]
call fcn.00401b16
lea ecx, [ebp - 0x30]
call fcn.00401b16
jmp 0x407801
cmp byte [ebp - 1], 0
je 0x407544
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00403e5b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.00401ba8
lea ecx, [ebp - 0x50]
call fcn.00401b16
push str.ISPackFiles.ini
lea ecx, [ebp - 0xc0]
call fcn.0040c4ec
lea ecx, [ebp - 0xc0]
call fcn.00401ffc
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.00403e5b
lea eax, [ebp - 0x13c]
push str.byeP
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00404b36
add esp, 0x14
lea ecx, [ebp - 0x6c]
push eax
call fcn.00401ba8
lea ecx, [ebp - 0x50]
call fcn.00401b16
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x6c]
push eax
call fcn.00404452
lea ecx, [ebp - 0x6c]
call fcn.00401ffc
push 0
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0xc0]
call fcn.00401ffc
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0x6c]
mov dword [ebp + 0x10], eax
call fcn.00401ffc
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xc], eax
call fcn.00401ffc
push 0
lea ecx, [ebp - 0x120]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
call fcn.00407955
lea eax, [ebp - 0x798]
push eax
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xb98]
push eax
lea eax, [ebp - 0x798]
push str._s__package
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], ebx
push 0
push str.Disk1
call fcn.0040399e
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], esi
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.0040cc01
add esp, 0xc
lea ecx, [ebp - 0x30]
push eax
call fcn.00401ba8
lea ecx, [ebp - 0xfc]
call fcn.00401b16
lea ecx, [ebp - 0x50]
call fcn.00401b16
lea ecx, [ebp - 0x30]
call fcn.00401ffc
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40753c
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x30]
push eax
call fcn.00401ba8
lea ecx, [ebp - 0x13c]
jmp 0x407562
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0x30]
push eax
call fcn.00404135
push eax
lea ecx, [ebp - 0x30]
call fcn.00401ba8
lea ecx, [ebp - 0x108]
call fcn.00401b16
lea ecx, [ebp - 0x17c]
call fcn.00402e6f
lea eax, [ebp - 0x30]
push 0
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xcc], ebx
call fcn.00403a0d
push str.engine32.cab
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xe0], esi
call fcn.0040481e
push 0
lea eax, [ebp - 0xe0]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00403e2a
lea ecx, [ebp - 0x17c]
call fcn.00402ea6
test al, al
mov byte [ebp + 0x13], al
je 0x4075e5
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0xa4]
push eax
call fcn.00401ba8
mov esi, 0x41234c
jmp 0x4076f8
mov dword [ebp - 0x44], edi
xor edi, edi
lea eax, [ebp - 0x30]
push edi
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], ebx
call fcn.00403a0d
push str.setup.ibt
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], esi
call fcn.0040c4ec
lea ecx, [ebp - 0x108]
call fcn.00402e6f
push edi
lea eax, [ebp - 0x50]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00403e2a
lea ecx, [ebp - 0x108]
call fcn.00402ea6
test al, al
je 0x407645
lea ecx, [ebp - 0x108]
call fcn.0040793b
cmp eax, 0xffffffff
jne 0x40766b
lea eax, [ebp - 0x1a4]
push str.setup.boot
push eax
lea ecx, [ebp - 0x50]
call fcn.0040c3d0
mov ecx, eax
call fcn.0040ca5e
lea ecx, [ebp - 0x1a4]
call fcn.00401b16
lea ecx, [ebp - 0x108]
call fcn.0040339f
lea ecx, [ebp - 0x148]
call fcn.00402e6f
push edi
lea eax, [ebp - 0x50]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00403e2a
lea ecx, [ebp - 0x148]
call fcn.00402ea6
test al, al
mov byte [ebp - 8], al
je 0x4076b3
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0xa4]
push eax
call fcn.00401ba8
mov esi, 0x41234c
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x148], esi
call fcn.0040339f
lea ecx, [ebp - 0x140]
call fcn.00401b16
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], esi
call fcn.0040339f
lea ecx, [ebp - 0x100]
call fcn.00401b16
lea ecx, [ebp - 0x50]
call fcn.00401b16
lea ecx, [ebp - 0x17c]
call fcn.0040339f
lea ecx, [ebp - 0xe0]
call fcn.00401b16
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x17c], esi
call fcn.0040339f
lea ecx, [ebp - 0x174]
call fcn.00401b16
lea ecx, [ebp - 0x11c]
call fcn.0040123f
lea ecx, [ebp - 0x88]
call fcn.00401b16
lea ecx, [ebp - 0x30]
call fcn.00401b16
cmp byte [ebp - 8], 0
jne 0x407758
cmp byte [ebp + 0x13], 0
je 0x407188
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
call esi
or ax, 0x8001
push eax
call esi
lea ecx, [ebp - 0xa4]
call fcn.00401ffc
push edi
lea eax, [ebp - 0x798]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x294]
push dword [ebp - 0xa0]
push eax
push dword [ebp + 8]
call fcn.00402c44
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x294]
push eax
push dword [ebp - 8]
call fcn.00408792
mov esi, eax
cmp esi, edi
je 0x4077d9
cmp esi, 0xffffec69
je 0x4077d9
mov eax, dword [ebp - 0x290]
push esi
lea ecx, [ebp - 0x294]
cmp byte [eax + 0x1f0], 0
je 0x4077d4
call fcn.0040abbc
jmp 0x4077d9
call fcn.004028c6
cmp byte [ebp - 1], 0
je 0x4077f6
lea ecx, [ebp - 0xc0]
call fcn.00401ffc
push dword [ebp - 0xbc]
call fcn.0040697c
pop ecx
lea ecx, [ebp - 0x294]
call fcn.004035e8
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc0]
call fcn.00401b16
lea ecx, [ebp - 0x6c]
call fcn.00401b16
lea ecx, [ebp - 0xa4]
call fcn.00401b16
mov ecx, 0x4155a0
call fcn.004066d7
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10