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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xba4
push ebx
push esi
push edi
push 0x412520
push dword [ebp + 8]
mov ecx, 0x415610
push 0x414368
call fcn.00408510
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, 0x412314
mov ebx, 0x41231c
push 0
lea ecx, [ebp - 0x70]
mov dword [0x415694], eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x5c], ebx
call fcn.00401a66
xor eax, eax
mov esi, 0x412310
push eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x78], ebx
call fcn.00401a66
mov dword [ebp - 0xb8], edi
xor edi, edi
push edi
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0xb0], ebx
call fcn.00401a66
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xc4], esi
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0xd0], edi
push dword [ebp + 0x10]
call fcn.0040690d
add esp, 0x1c
mov dword [ebp - 4], eax
lea eax, [ebp - 0x7a4]
push dword [ebp + 0x10]
push 0x41469c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x30]
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]
cmp dword [ebp - 4], 1
jne 0x407d4c
push edi
push 1
push 0x415610
call fcn.00409b98
jmp 0x407dbe
cmp dword [ebp - 4], edi
jne 0x407d5e
push edi
mov ecx, 0x415610
call fcn.0040676b
jmp 0x407dbe
cmp dword [ebp - 4], 2
jne 0x407df3
mov esi, 0x415610
mov ecx, esi
call fcn.00406717
push edi
push 4
push esi
call fcn.00408ffb
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
lea eax, [ebp - 0xf0]
push edi
push eax
call ebx
test eax, eax
je 0x407dac
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push edi
lea eax, [ebp - 0xf0]
push edi
push eax
jmp 0x407d8d
push esi
call fcn.00409090
push dword [0x4156a8]
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc4]
call fcn.00401b39
lea ecx, [ebp - 0x8c]
call fcn.00401b39
lea ecx, [ebp - 0x70]
call fcn.00401b39
mov ecx, 0x415610
call fcn.004068f2
xor eax, eax
jmp 0x408509
call fcn.0040b029
cmp dword [ebp - 0xc8], edi
mov byte [ebp + 0x13], al
jne 0x407e31
movzx eax, al
push eax
xor eax, eax
push dword [ebp - 0x34]
cmp dword [ebp - 4], 3
push dword [ebp - 0x38]
sete al
push eax
lea eax, [ebp - 0x7a4]
push eax
call fcn.004076af
add esp, 0x14
test eax, eax
je 0x407e31
xor esi, esi
jmp 0x4084d9
and byte [ebp - 0xc], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x10], edi
call fcn.0040c7ab
test al, al
je 0x407e50
mov dword [ebp - 0x10], 1
jmp 0x40843b
push edi
push str.file:__
push 7
push edi
lea ecx, [ebp - 0x70]
call fcn.00403daa
test eax, eax
jne 0x407e7c
push 7
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x10], 1
call fcn.00405491
jmp 0x40843b
cmp dword [ebp - 4], 3
jne 0x407e8b
mov byte [ebp - 0xc], 1
jmp 0x40843b
and byte [ebp - 0x3a4], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x3a3]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x3a4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x3a4]
mov edi, 0x412314
push 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], ebx
call fcn.00403a2f
push 0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x94], ebx
call fcn.00401a66
lea eax, [ebp - 0x7a4]
lea ecx, [ebp - 0x12c]
push eax
mov dword [ebp - 0xa8], esi
call fcn.0040121b
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0x160]
push eax
call fcn.0040c87b
mov eax, dword [ebp - 0x160]
push 1
add eax, 0x10
push 0
push eax
push 0x414680
lea ecx, [ebp - 0x12c]
call fcn.0040126e
test al, al
je 0x408050
cmp byte [ebp + 0x13], 0
jne 0x407f9a
lea ecx, [ebp - 0x12c]
call fcn.00401245
lea ecx, [ebp - 0xa8]
call fcn.00401b39
lea ecx, [ebp - 0x2c]
call fcn.00401b39
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc4]
call fcn.00401b39
lea ecx, [ebp - 0x8c]
call fcn.00401b39
lea ecx, [ebp - 0x70]
call fcn.00401b39
mov ecx, 0x415610
call fcn.004068f2
mov eax, 0xffffe889
jmp 0x408509
cmp dword [ebp - 0x98], 0
je 0x407fb3
push dword [ebp - 0x98]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x407fba
mov esi, 0xffffe889
jmp 0x40802d
lea ecx, [ebp - 0xa8]
call fcn.0040b657
push 0x41467c
lea ecx, [ebp - 0xa8]
call fcn.0040c7f5
lea eax, [ebp - 0xa8]
push eax
call fcn.0040af7b
pop ecx
lea ecx, [ebp - 0xa8]
call fcn.00402077
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407fb3
and byte [ebp + 0x10], 0
lea ecx, [ebp - 0xa8]
call fcn.00402077
mov esi, dword [ebp - 0xa4]
lea ecx, [ebp - 0x2c]
call fcn.00402077
push 1
push 0
push esi
lea ecx, [ebp + 0x10]
push dword [ebp - 0x28]
call fcn.0040862d
xor esi, esi
lea ecx, [ebp - 0x12c]
call fcn.00401245
lea ecx, [ebp - 0xa8]
call fcn.00401b39
lea ecx, [ebp - 0x2c]
call fcn.00401b39
jmp 0x4084d9
cmp byte [ebp + 0x13], 0
je 0x408205
and byte [ebp - 0xd4], 0
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00403ff1
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xc4]
call fcn.00401bcb
lea ecx, [ebp - 0x54]
call fcn.00401b39
push str.ISPackFiles.ini
lea ecx, [ebp - 0xc4]
call fcn.0040c7f5
lea ecx, [ebp - 0xc4]
call fcn.00402077
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.00403ff1
lea eax, [ebp - 0x148]
push str.byeP
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00404e5d
add esp, 0x14
lea ecx, [ebp - 0x8c]
push eax
call fcn.00401bcb
lea ecx, [ebp - 0x54]
call fcn.00401b39
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x8c]
push eax
call fcn.004045e8
lea ecx, [ebp - 0x8c]
call fcn.00402077
push 0
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0xc4]
call fcn.00402077
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], eax
call fcn.00402077
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xcc], eax
call fcn.00402077
push 0
lea ecx, [ebp - 0xd4]
push dword [ebp - 4]
push dword [ebp - 0xcc]
push dword [ebp - 0x28]
call fcn.0040862d
lea eax, [ebp - 0x7a4]
push eax
lea eax, [ebp - 0xba4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xba4]
push eax
lea eax, [ebp - 0x7a4]
push str._s__package
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], ebx
push 0
push str.Disk1
call fcn.00403a2f
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], esi
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00404ce8
add esp, 0xc
lea ecx, [ebp - 0x2c]
push eax
call fcn.00401bcb
lea ecx, [ebp - 0x10c]
call fcn.00401b39
lea ecx, [ebp - 0x54]
call fcn.00401b39
lea ecx, [ebp - 0x2c]
call fcn.00402077
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4081fd
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00401bcb
lea ecx, [ebp - 0x148]
jmp 0x408249
cmp dword [ebp - 4], 4
jne 0x40822b
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x70]
push eax
call fcn.004042cb
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401bcb
lea ecx, [ebp - 0x118]
jmp 0x408249
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004042cb
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401bcb
lea ecx, [ebp - 0x118]
call fcn.00401b39
lea ecx, [ebp - 0x188]
call fcn.00402d86
lea eax, [ebp - 0x2c]
push 0
push eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xdc], ebx
call fcn.00403a9e
push str.engine32.cab
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf0], esi
call fcn.004049b4
push 0
lea eax, [ebp - 0xf0]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00403fc0
lea ecx, [ebp - 0x188]
call fcn.00402dbd
test al, al
mov byte [ebp - 5], al
je 0x4082c9
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x70]
push eax
call fcn.00401bcb
mov esi, 0x412354
jmp 0x4083d9
mov dword [ebp - 0x48], edi
xor edi, edi
lea eax, [ebp - 0x2c]
push edi
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], ebx
call fcn.00403a9e
push str.setup.ibt
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], esi
call fcn.0040c7f5
lea ecx, [ebp - 0x118]
call fcn.00402d86
push edi
lea eax, [ebp - 0x54]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00403fc0
lea ecx, [ebp - 0x118]
call fcn.00402dbd
test al, al
je 0x408329
lea ecx, [ebp - 0x118]
call fcn.00408613
cmp eax, 0xffffffff
jne 0x40834f
lea eax, [ebp - 0x1b0]
push str.setup.boot
push eax
lea ecx, [ebp - 0x54]
call fcn.0040c6d9
mov ecx, eax
call fcn.0040cc7f
lea ecx, [ebp - 0x1b0]
call fcn.00401b39
lea ecx, [ebp - 0x118]
call fcn.004032b6
lea ecx, [ebp - 0x154]
call fcn.00402d86
push edi
lea eax, [ebp - 0x54]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00403fc0
lea ecx, [ebp - 0x154]
call fcn.00402dbd
test al, al
mov byte [ebp - 0xc], al
je 0x408394
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x70]
push eax
call fcn.00401bcb
mov esi, 0x412354
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x154], esi
call fcn.004032b6
lea ecx, [ebp - 0x14c]
call fcn.00401b39
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], esi
call fcn.004032b6
lea ecx, [ebp - 0x110]
call fcn.00401b39
lea ecx, [ebp - 0x54]
call fcn.00401b39
lea ecx, [ebp - 0x188]
call fcn.004032b6
lea ecx, [ebp - 0xf0]
call fcn.00401b39
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x188], esi
call fcn.004032b6
lea ecx, [ebp - 0x180]
call fcn.00401b39
lea ecx, [ebp - 0x12c]
call fcn.00401245
lea ecx, [ebp - 0xa8]
call fcn.00401b39
lea ecx, [ebp - 0x2c]
call fcn.00401b39
cmp byte [ebp - 0xc], 0
jne 0x408439
cmp byte [ebp - 5], 0
je 0x407e2a
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 - 0x70]
call fcn.00402077
push edi
lea eax, [ebp - 0x7a4]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2a0]
push dword [ebp - 0x6c]
push eax
push dword [ebp + 8]
call fcn.00402b5b
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x2a0]
push eax
push dword [ebp - 0xc]
call fcn.004090cc
mov esi, eax
cmp esi, edi
je 0x4084b1
cmp esi, 0xffffec69
je 0x4084b1
mov eax, dword [ebp - 0x29c]
push esi
lea ecx, [ebp - 0x2a0]
cmp byte [eax + 0x1f0], 0
je 0x4084ac
call fcn.0040ae5f
jmp 0x4084b1
call fcn.00402867
cmp byte [ebp + 0x13], 0
je 0x4084ce
lea ecx, [ebp - 0xc4]
call fcn.00402077
push dword [ebp - 0xc0]
call fcn.00406c0e
pop ecx
lea ecx, [ebp - 0x2a0]
call fcn.00403547
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc4]
call fcn.00401b39
lea ecx, [ebp - 0x8c]
call fcn.00401b39
lea ecx, [ebp - 0x70]
call fcn.00401b39
mov ecx, 0x415610
call fcn.004068f2
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10