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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb50
push ebx
push esi
push edi
push 0x4104f8
push dword [ebp + 8]
mov ecx, 0x4131f8
push 0x412320
call fcn.00407470
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, 0x4102f8
mov ebx, 0x4102f0
push 0
lea ecx, [ebp - 0xa4]
mov dword [0x41327c], eax
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x90], ebx
call fcn.004020c6
and dword [ebp - 0x14], 0
and byte [ebp - 1], 0
mov esi, 0x4102ec
push 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ebx
call fcn.004020c6
mov dword [ebp - 0xb4], edi
xor edi, edi
push edi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0xac], ebx
call fcn.004020c6
lea eax, [ebp - 0x50]
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.00406369
add esp, 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x750]
push dword [ebp + 0x10]
push 0x4125b0
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 0x406d39
push edi
push eax
push 0x4131f8
call fcn.00409dbe
jmp 0x406da9
cmp eax, edi
jne 0x406d4a
push edi
mov ecx, 0x4131f8
call fcn.004061c7
jmp 0x406da9
cmp eax, 2
jne 0x406de1
mov esi, 0x4131f8
mov ecx, esi
call fcn.00406173
push edi
push 4
push esi
call fcn.00409633
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 0x406d97
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 0x406d78
push esi
call fcn.004096c8
push dword [0x413290]
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc0]
call fcn.00402199
lea ecx, [ebp - 0x88]
call fcn.00402199
lea ecx, [ebp - 0xa4]
call fcn.00402199
mov ecx, 0x4131f8
call fcn.0040634e
xor eax, eax
jmp 0x407469
cmp dword [ebp - 0xc4], edi
jne 0x406e0f
push dword [ebp - 0x50]
xor ecx, ecx
cmp eax, 3
lea eax, [ebp - 0x750]
sete cl
push ecx
push eax
call fcn.004069ff
add esp, 0xc
test eax, eax
je 0x406e0f
xor esi, esi
jmp 0x407436
and byte [ebp - 8], 0
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x10], edi
call fcn.0040b55a
test al, al
je 0x406e31
mov dword [ebp - 0x10], 1
jmp 0x40738f
push edi
push str.file:__
push 7
push edi
lea ecx, [ebp - 0xa4]
call fcn.00402656
test eax, eax
jne 0x406e63
push 7
push edi
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x10], 1
call fcn.00404dd2
jmp 0x40738f
cmp dword [ebp - 0xc], 3
jne 0x406e72
mov byte [ebp - 8], 1
jmp 0x40738f
and byte [ebp - 0x350], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x34f]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x350]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x350]
mov edi, 0x4102f8
push 0
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ebx
call fcn.00402c2b
lea eax, [ebp - 0x350]
mov dword [ebp - 0x30], esi
push eax
call fcn.0040a676
pop ecx
mov byte [ebp - 1], al
push 0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x58], ebx
call fcn.004020c6
lea eax, [ebp - 0x750]
lea ecx, [ebp - 0xf8]
push eax
mov dword [ebp - 0x6c], esi
call fcn.00401ad1
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x12c]
push eax
call fcn.0040b67f
mov eax, dword [ebp - 0x12c]
push 1
add eax, 0x10
push 0
push eax
push 0x412594
lea ecx, [ebp - 0xf8]
call fcn.00401b24
test al, al
je 0x407016
cmp byte [ebp - 1], 0
jne 0x406f82
lea ecx, [ebp - 0xf8]
call fcn.00401afb
lea ecx, [ebp - 0x6c]
call fcn.00402199
lea ecx, [ebp - 0x30]
call fcn.00402199
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc0]
call fcn.00402199
lea ecx, [ebp - 0x88]
call fcn.00402199
lea ecx, [ebp - 0xa4]
call fcn.00402199
mov ecx, 0x4131f8
call fcn.0040634e
mov eax, 0xffffe889
jmp 0x407469
cmp dword [ebp - 0x5c], 0
je 0x406f95
push dword [ebp - 0x5c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x406f9c
mov esi, 0xffffe889
jmp 0x406ff6
lea ecx, [ebp - 0x6c]
call fcn.0040a7f0
push 0x412590
lea ecx, [ebp - 0x6c]
call fcn.0040b5a4
lea eax, [ebp - 0x6c]
push eax
call fcn.0040a5c8
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.004027e2
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406f95
lea ecx, [ebp - 0x6c]
call fcn.004027e2
mov esi, dword [ebp - 0x68]
lea ecx, [ebp - 0x30]
call fcn.004027e2
push 1
push 0
push esi
lea ecx, [ebp + 0x10]
push dword [ebp - 0x2c]
call fcn.00407573
xor esi, esi
lea ecx, [ebp - 0xf8]
call fcn.00401afb
lea ecx, [ebp - 0x6c]
call fcn.00402199
lea ecx, [ebp - 0x30]
call fcn.00402199
jmp 0x407436
cmp byte [ebp - 1], 0
je 0x4071be
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.00402a41
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040222b
lea ecx, [ebp - 0x4c]
call fcn.00402199
push str.ISPackFiles.ini
lea ecx, [ebp - 0xc0]
call fcn.0040b5a4
lea ecx, [ebp - 0xc0]
call fcn.004027e2
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.00402a41
lea eax, [ebp - 0x170]
push str.byeP
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00403813
add esp, 0x14
lea ecx, [ebp - 0x88]
push eax
call fcn.0040222b
lea ecx, [ebp - 0x4c]
call fcn.00402199
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x88]
push eax
call fcn.00403113
lea ecx, [ebp - 0x88]
call fcn.004027e2
push 0
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0xc0]
call fcn.004027e2
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0x88]
mov dword [ebp + 0x10], eax
call fcn.004027e2
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xc], eax
call fcn.004027e2
push 0
lea ecx, [ebp - 0xe4]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
call fcn.00407573
lea eax, [ebp - 0x750]
push eax
lea eax, [ebp - 0xb50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xb50]
push eax
lea eax, [ebp - 0x750]
push str._s__package
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], ebx
push 0
push str.Disk1
call fcn.00402c2b
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0040b834
add esp, 0xc
lea ecx, [ebp - 0x30]
push eax
call fcn.0040222b
lea ecx, [ebp - 0x114]
call fcn.00402199
lea ecx, [ebp - 0x4c]
call fcn.00402199
lea ecx, [ebp - 0x30]
call fcn.004027e2
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4071b6
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040222b
lea ecx, [ebp - 0x170]
jmp 0x4071dc
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x30]
push eax
call fcn.00402d8a
push eax
lea ecx, [ebp - 0x30]
call fcn.0040222b
lea ecx, [ebp - 0x120]
call fcn.00402199
lea ecx, [ebp - 0x154]
call fcn.004012b2
lea eax, [ebp - 0x30]
push 0
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xcc], ebx
call fcn.004029b1
push str.engine32.cab
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xe0], esi
call fcn.004034df
push 0
lea eax, [ebp - 0xe0]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00402980
lea ecx, [ebp - 0x154]
call fcn.004012e9
test al, al
mov byte [ebp + 0x13], al
je 0x40725a
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0xa4]
push eax
call fcn.0040222b
jmp 0x40732c
lea ecx, [ebp - 0x120]
call fcn.004012b2
lea eax, [ebp - 0x30]
push 0
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], ebx
call fcn.004029b1
push str.setup.ibt
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
call fcn.0040b5a4
lea ecx, [ebp - 0x4c]
call fcn.0040b55a
test al, al
jne 0x4072d1
lea ecx, [ebp - 0x4c]
call fcn.004027e2
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4072d1
lea eax, [ebp - 0x17c]
push str.setup.boot
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040b488
mov ecx, eax
call fcn.0040b691
lea ecx, [ebp - 0x17c]
call fcn.00402199
push 0
lea eax, [ebp - 0x4c]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00402980
lea ecx, [ebp - 0x120]
call fcn.004012e9
test al, al
mov byte [ebp - 8], al
je 0x407304
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0xa4]
push eax
call fcn.0040222b
lea ecx, [ebp - 0x4c]
call fcn.00402199
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x120], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x118]
call fcn.00402199
lea ecx, [ebp - 0x154]
call fcn.004017e2
lea ecx, [ebp - 0xe0]
call fcn.00402199
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x154], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x14c]
call fcn.00402199
lea ecx, [ebp - 0xf8]
call fcn.00401afb
lea ecx, [ebp - 0x6c]
call fcn.00402199
lea ecx, [ebp - 0x30]
call fcn.00402199
cmp byte [ebp - 8], 0
jne 0x40738d
cmp byte [ebp + 0x13], 0
je 0x406e08
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.004027e2
push edi
lea eax, [ebp - 0x750]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24c]
push dword [ebp - 0xa0]
push eax
push dword [ebp + 8]
call fcn.00404140
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 8]
call fcn.004081f0
mov esi, eax
cmp esi, edi
je 0x40740e
cmp esi, 0xffffec69
je 0x40740e
mov eax, dword [ebp - 0x248]
push esi
lea ecx, [ebp - 0x24c]
cmp byte [eax + 0x1f0], 0
je 0x407409
call fcn.0040a3df
jmp 0x40740e
call fcn.00403dbe
cmp byte [ebp - 1], 0
je 0x40742b
lea ecx, [ebp - 0xc0]
call fcn.004027e2
push dword [ebp - 0xbc]
call fcn.004065f3
pop ecx
lea ecx, [ebp - 0x24c]
call fcn.004042a3
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc0]
call fcn.00402199
lea ecx, [ebp - 0x88]
call fcn.00402199
lea ecx, [ebp - 0xa4]
call fcn.00402199
mov ecx, 0x4131f8
call fcn.0040634e
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10