Function at 0x407c43
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 0x408514
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.0040691c
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 0x407d50
push edi
push 1
push 0x415610
call fcn.0040a014
jmp 0x407dc2
cmp dword [ebp - 4], edi
jne 0x407d62
push edi
mov ecx, 0x415610
call fcn.0040677a
jmp 0x407dc2
cmp dword [ebp - 4], 2
jne 0x407df7
mov esi, 0x415610
mov ecx, esi
call fcn.00406726
push edi
push 4
push esi
call fcn.00409632
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 0x407db0
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 0x407d91
push esi
call fcn.004096c7
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.00406901
xor eax, eax
jmp 0x40850d
call fcn.0040b02d
cmp dword [ebp - 0xc8], edi
mov byte [ebp + 0x13], al
jne 0x407e35
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.004071fa
add esp, 0x14
test eax, eax
je 0x407e35
xor esi, esi
jmp 0x4084dd
and byte [ebp - 0xc], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x10], edi
call fcn.0040c78b
test al, al
je 0x407e54
mov dword [ebp - 0x10], 1
jmp 0x40843f
push edi
push str.file:__
push 7
push edi
lea ecx, [ebp - 0x70]
call fcn.00403daa
test eax, eax
jne 0x407e80
push 7
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x10], 1
call fcn.00405491
jmp 0x40843f
cmp dword [ebp - 4], 3
jne 0x407e8f
mov byte [ebp - 0xc], 1
jmp 0x40843f
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.00403a6c
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.0040c85b
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 0x408054
cmp byte [ebp + 0x13], 0
jne 0x407f9e
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.00406901
mov eax, 0xffffe889
jmp 0x40850d
cmp dword [ebp - 0x98], 0
je 0x407fb7
push dword [ebp - 0x98]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x407fbe
mov esi, 0xffffe889
jmp 0x408031
lea ecx, [ebp - 0xa8]
call fcn.0040b65b
push 0x41467c
lea ecx, [ebp - 0xa8]
call fcn.0040c7d5
lea eax, [ebp - 0xa8]
push eax
call fcn.0040af7f
pop ecx
lea ecx, [ebp - 0xa8]
call fcn.00401f9d
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407fb7
and byte [ebp + 0x10], 0
lea ecx, [ebp - 0xa8]
call fcn.00401f9d
mov esi, dword [ebp - 0xa4]
lea ecx, [ebp - 0x2c]
call fcn.00401f9d
push 1
push 0
push esi
lea ecx, [ebp + 0x10]
push dword [ebp - 0x28]
call fcn.00408631
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 0x4084dd
cmp byte [ebp + 0x13], 0
je 0x408209
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.0040c7d5
lea ecx, [ebp - 0xc4]
call fcn.00401f9d
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.00401f9d
push 0
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0xc4]
call fcn.00401f9d
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], eax
call fcn.00401f9d
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xcc], eax
call fcn.00401f9d
push 0
lea ecx, [ebp - 0xd4]
push dword [ebp - 4]
push dword [ebp - 0xcc]
push dword [ebp - 0x28]
call fcn.00408631
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.00403a6c
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.00401f9d
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408201
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00401bcb
lea ecx, [ebp - 0x148]
jmp 0x40824d
cmp dword [ebp - 4], 4
jne 0x40822f
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 0x40824d
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.00402dc3
lea eax, [ebp - 0x2c]
push 0
push eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xdc], ebx
call fcn.00403adb
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.00402dfa
test al, al
mov byte [ebp - 5], al
je 0x4082cd
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x70]
push eax
call fcn.00401bcb
mov esi, 0x412354
jmp 0x4083dd
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.00403adb
push str.setup.ibt
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], esi
call fcn.0040c7d5
lea ecx, [ebp - 0x118]
call fcn.00402dc3
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.00402dfa
test al, al
je 0x40832d
lea ecx, [ebp - 0x118]
call fcn.00408617
cmp eax, 0xffffffff
jne 0x408353
lea eax, [ebp - 0x1b0]
push str.setup.boot
push eax
lea ecx, [ebp - 0x54]
call fcn.0040c6b9
mov ecx, eax
call fcn.0040cc5f
lea ecx, [ebp - 0x1b0]
call fcn.00401b39
lea ecx, [ebp - 0x118]
call fcn.004032f3
lea ecx, [ebp - 0x154]
call fcn.00402dc3
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.00402dfa
test al, al
mov byte [ebp - 0xc], al
je 0x408398
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.004032f3
lea ecx, [ebp - 0x14c]
call fcn.00401b39
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], esi
call fcn.004032f3
lea ecx, [ebp - 0x110]
call fcn.00401b39
lea ecx, [ebp - 0x54]
call fcn.00401b39
lea ecx, [ebp - 0x188]
call fcn.004032f3
lea ecx, [ebp - 0xf0]
pop esi
leave
ret
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4084df
mov ecx, dword [eax + 0x10]
dec eax
adc byte [ebx + 0x54390c50], cl
and al, 0xc
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4084f0
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4084fa
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4084d5
xor eax, eax
pop edi
pop esi
ret
enter 0xffffffffffffc985, 0x75
add ebx, eax
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, dword [esp + 4]
add eax, dword [esp + 0xc]
ret