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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb44
push ebx
push esi
push edi
push 0x4104f8
push dword [ebp + 8]
mov ecx, 0x413068
push 0x412320
call fcn.0040741d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, 0x4102f8
mov ebx, 0x4102f0
push 0
lea ecx, [ebp - 0xa4]
mov dword [0x4130ec], eax
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x90], ebx
call fcn.0040210f
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 - 0x18], 1
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ebx
call fcn.0040210f
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.0040210f
lea eax, [ebp - 0x18]
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.0040635e
add esp, 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x744]
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 0x406d2e
push edi
push eax
push 0x413068
call fcn.00409c34
jmp 0x406d9e
cmp eax, edi
jne 0x406d3f
push edi
mov ecx, 0x413068
call fcn.004061bc
jmp 0x406d9e
cmp eax, 2
jne 0x406dd6
mov esi, 0x413068
mov ecx, esi
call fcn.00406168
push edi
push 4
push esi
call fcn.004093f1
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 0x406d8c
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 0x406d6d
push esi
call fcn.00409676
push dword [0x413100]
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc0]
call fcn.00402172
lea ecx, [ebp - 0x88]
call fcn.00402172
lea ecx, [ebp - 0xa4]
call fcn.00402172
mov ecx, 0x413068
call fcn.00406343
xor eax, eax
jmp 0x407416
cmp dword [ebp - 0xc4], edi
jne 0x406e04
push dword [ebp - 0x18]
xor ecx, ecx
cmp eax, 3
lea eax, [ebp - 0x744]
sete cl
push ecx
push eax
call fcn.004069f4
add esp, 0xc
test eax, eax
je 0x406e04
xor esi, esi
jmp 0x4073e3
and byte [ebp - 8], 0
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x10], edi
call fcn.0040b035
test al, al
je 0x406e26
mov dword [ebp - 0x10], 1
jmp 0x40733c
push edi
push str.file:__
push 7
push edi
lea ecx, [ebp - 0xa4]
call fcn.004024ad
test eax, eax
jne 0x406e58
push 7
push edi
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x10], 1
call fcn.00404de3
jmp 0x40733c
cmp dword [ebp - 0xc], 3
jne 0x406e67
mov byte [ebp - 8], 1
jmp 0x40733c
and byte [ebp - 0x344], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x343]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x344]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x344]
mov edi, 0x4102f8
push 0
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ebx
call fcn.00402a82
lea eax, [ebp - 0x344]
mov dword [ebp - 0x34], esi
push eax
call fcn.00409e81
pop ecx
mov byte [ebp - 1], al
push 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], ebx
call fcn.0040210f
lea eax, [ebp - 0x744]
lea ecx, [ebp - 0xf8]
push eax
mov dword [ebp - 0x50], esi
call fcn.00401ad1
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x12c]
push eax
call fcn.0040b15a
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 0x40700b
cmp byte [ebp - 1], 0
jne 0x406f77
lea ecx, [ebp - 0xf8]
call fcn.00401afb
lea ecx, [ebp - 0x50]
call fcn.00402172
lea ecx, [ebp - 0x34]
call fcn.00402172
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc0]
call fcn.00402172
lea ecx, [ebp - 0x88]
call fcn.00402172
lea ecx, [ebp - 0xa4]
call fcn.00402172
mov ecx, 0x413068
call fcn.00406343
mov eax, 0xffffe889
jmp 0x407416
cmp dword [ebp - 0x40], 0
je 0x406f8a
push dword [ebp - 0x40]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x406f91
mov esi, 0xffffe889
jmp 0x406feb
lea ecx, [ebp - 0x50]
call fcn.0040a311
push 0x412590
lea ecx, [ebp - 0x50]
call fcn.0040b07f
lea eax, [ebp - 0x50]
push eax
call fcn.00409dd3
pop ecx
lea ecx, [ebp - 0x50]
call fcn.00402639
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406f8a
lea ecx, [ebp - 0x50]
call fcn.00402639
mov esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
call fcn.00402639
push 1
push 0
push esi
lea ecx, [ebp + 0x10]
push dword [ebp - 0x30]
call fcn.00407520
xor esi, esi
lea ecx, [ebp - 0xf8]
call fcn.00401afb
lea ecx, [ebp - 0x50]
call fcn.00402172
lea ecx, [ebp - 0x34]
call fcn.00402172
jmp 0x4073e3
cmp byte [ebp - 1], 0
je 0x4071b3
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00402898
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040a895
lea ecx, [ebp - 0x6c]
call fcn.00402172
push str.ISPackFiles.ini
lea ecx, [ebp - 0xc0]
call fcn.0040b07f
lea ecx, [ebp - 0xc0]
call fcn.00402639
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.00402898
lea eax, [ebp - 0x170]
push str.byeP
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.004036da
add esp, 0x14
lea ecx, [ebp - 0x88]
push eax
call fcn.0040a895
lea ecx, [ebp - 0x6c]
call fcn.00402172
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x88]
push eax
call fcn.00402f6a
lea ecx, [ebp - 0x88]
call fcn.00402639
push 0
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0xc0]
call fcn.00402639
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0x88]
mov dword [ebp + 0x10], eax
call fcn.00402639
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xc], eax
call fcn.00402639
push 0
lea ecx, [ebp - 0xe4]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp - 0x30]
call fcn.00407520
lea eax, [ebp - 0x744]
push eax
lea eax, [ebp - 0xb44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xb44]
push eax
lea eax, [ebp - 0x744]
push str._s__package
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x58], ebx
push 0
push str.Disk1
call fcn.00402a82
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], esi
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0040b16c
add esp, 0xc
lea ecx, [ebp - 0x34]
push eax
call fcn.0040a895
lea ecx, [ebp - 0x114]
call fcn.00402172
lea ecx, [ebp - 0x6c]
call fcn.00402172
lea ecx, [ebp - 0x34]
call fcn.00402639
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4071ab
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x34]
push eax
call fcn.0040a895
lea ecx, [ebp - 0x170]
jmp 0x4071d1
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x34]
push eax
call fcn.00402be1
push eax
lea ecx, [ebp - 0x34]
call fcn.0040a895
lea ecx, [ebp - 0x120]
call fcn.00402172
lea ecx, [ebp - 0x154]
call fcn.004012b2
lea eax, [ebp - 0x34]
push 0
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xcc], ebx
call fcn.00402808
push str.engine32.cab
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xe0], esi
call fcn.004033a6
push 0
lea eax, [ebp - 0xe0]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.004027d7
lea ecx, [ebp - 0x154]
call fcn.004012e9
test al, al
mov byte [ebp + 0x13], al
je 0x40724f
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0xa4]
push eax
call fcn.0040a895
jmp 0x4072d9
lea ecx, [ebp - 0x120]
call fcn.004012b2
lea eax, [ebp - 0x34]
push 0
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x58], ebx
call fcn.00402808
push str.setup.boot
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], esi
call fcn.004033a6
push 0
lea eax, [ebp - 0x6c]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.004027d7
lea ecx, [ebp - 0x120]
call fcn.004012e9
test al, al
mov byte [ebp - 8], al
je 0x4072b1
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0xa4]
push eax
call fcn.0040a895
lea ecx, [ebp - 0x6c]
call fcn.00402172
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x120], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x118]
call fcn.00402172
lea ecx, [ebp - 0x154]
call fcn.004017e2
lea ecx, [ebp - 0xe0]
call fcn.00402172
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x154], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x14c]
call fcn.00402172
lea ecx, [ebp - 0xf8]
call fcn.00401afb
lea ecx, [ebp - 0x50]
call fcn.00402172
lea ecx, [ebp - 0x34]
call fcn.00402172
cmp byte [ebp - 8], 0
jne 0x40733a
cmp byte [ebp + 0x13], 0
je 0x406dfd
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.00402639
push edi
lea eax, [ebp - 0x744]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x240]
push dword [ebp - 0xa0]
push eax
push dword [ebp + 8]
call fcn.00403ff1
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x240]
push eax
push dword [ebp - 8]
call fcn.00407ecc
mov esi, eax
cmp esi, edi
je 0x4073bb
cmp esi, 0xffffec69
je 0x4073bb
mov eax, dword [ebp - 0x23c]
push esi
lea ecx, [ebp - 0x240]
cmp byte [eax + 0x1f0], 0
je 0x4073b6
call fcn.00409cb7
jmp 0x4073bb
call fcn.00403c85
cmp byte [ebp - 1], 0
je 0x4073d8
lea ecx, [ebp - 0xc0]
call fcn.00402639
push dword [ebp - 0xbc]
call fcn.004065e8
pop ecx
lea ecx, [ebp - 0x240]
call fcn.00404154
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc0]
call fcn.00402172
lea ecx, [ebp - 0x88]
call fcn.00402172
lea ecx, [ebp - 0xa4]
call fcn.00402172
mov ecx, 0x413068
call fcn.00406343
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10