Function at 0x402295
Capabilities:
Create directory
Delete file

Disassembly:
mov eax, 0x410390
call fcn.0040fdb0
sub esp, 0x830
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x138]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x1c], edi
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x23c]
push ebx
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x340]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
lea eax, [ebp - 0x340]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x341]
cmp byte [eax], 0x5c
je 0x40230c
dec eax
jmp 0x402304
cmp dword [ebp + 8], ebx
mov byte [eax], bl
push dword [edi + 0xd0]
je 0x402322
lea eax, [ebp - 0x340]
push eax
jmp 0x402325
push dword [edi + 0x60]
lea eax, [ebp - 0x23c]
push 0x41615c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [edi + 0x78]
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x18], 1
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], 0x1f4
je 0x40245e
jmp 0x40235b
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x18], ebx
je 0x40245e
mov ecx, dword [eax]
mov eax, dword [eax + 8]
cmp eax, ebx
mov dword [ebp + 8], ecx
je 0x402444
mov ecx, dword [eax + 0x2e0]
inc dword [ebp - 0x14]
cmp ecx, ebx
je 0x40238a
cmp ecx, 0x7a
je 0x402455
cmp dword [eax + 0x2e8], ebx
ja 0x402455
add eax, 0x64
push eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or dword [ebp - 0x24], 0xffffffff
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x548]
push str._s.tsz
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x20]
push str.TCO_stream30_TEMP_PASSWORD
call fcn.0040fb98
lea eax, [ebp - 0x24]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x138]
push dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x138]
push eax
push ebx
call fcn.00408ab0
add esp, 0x14
cmp dword [ebp - 0x24], ebx
jbe 0x40249b
push dword [ebp - 0x14]
lea eax, [ebp - 0x23c]
push 1
push 9
push str.PATCH_FILES
push eax
lea eax, [ebp - 0x548]
push eax
call fcn.00402f25
add esp, 0x18
mov dword [ebp - 0x18], eax
cmp eax, ebx
lea eax, [ebp - 0x548]
push eax
je 0x4024f3
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
push esi
lea eax, [ebp - 0x138]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x402358
push 2
lea eax, [ebp - 0xe]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, edi
push 0x3f1
call sub.MFC42.DLL_CWnd::GetDlgItem
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
mov edi, 0xf0
push ebx
push edi
push dword [eax + 0x20]
call esi
cmp eax, ebx
je 0x40252f
xor eax, eax
jmp 0x402589
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp + 8]
push str.Error___Compress__FileName_s_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push ebx
push ebx
push dword [ebp + 8]
call sub.MFC42.DLL_AfxMessageBox
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
push str.Error___AttachFileToExeAsRes_Error_FileName___s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push ebx
push ebx
push dword [ebp + 8]
call sub.MFC42.DLL_AfxMessageBox
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
jmp 0x4024cf
mov ecx, dword [ebp - 0x1c]
push 0x3f2
call sub.MFC42.DLL_CWnd::GetDlgItem
push ebx
push ebx
push edi
push dword [eax + 0x20]
call esi
cmp eax, ebx
je 0x40254c
push 1
jmp 0x402588
mov ecx, dword [ebp - 0x1c]
push 0x3f3
call sub.MFC42.DLL_CWnd::GetDlgItem
push ebx
push ebx
push edi
push dword [eax + 0x20]
call esi
cmp eax, ebx
je 0x402569
push 2
jmp 0x402588
mov ecx, dword [ebp - 0x1c]
push 0x3f4
call sub.MFC42.DLL_CWnd::GetDlgItem
push ebx
push ebx
push edi
push dword [eax + 0x20]
call esi
cmp eax, ebx
je 0x4024e0
push 8
pop eax
push eax
lea eax, [ebp - 0xe]
push 0x416070
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp byte [ebp - 0xe], bl
je 0x4025ca
push 0x3e8
push 1
push 9
lea eax, [ebp - 0x23c]
push str.PATCH_FILES
push eax
lea eax, [ebp - 0xe]
push eax
call fcn.00403271
add esp, 0x18
test eax, eax
je 0x4024e0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffe0c
cmp eax, ebx
mov dword [ebp - 0x14], eax
jle 0x402725
push 0x104
lea eax, [ebp - 0x444]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
push str.C:Temp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x444]
push str.C:TempFileUpgrade_kck.Dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::CFile
push ebx
lea eax, [ebp - 0x444]
push 0x9001
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 3
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x402655
push ebx
push ebx
push str.C:TempFileUpgrade_kck.Data_Error
call sub.MFC42.DLL_AfxMessageBox
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040fcb2
jmp 0x4024e0
push 0x2f4
lea eax, [ebp - 0x83c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0x560], eax
push 0x3fa
call sub.MFC42.DLL_CWnd::GetDlgItem
push ebx
push ebx
push edi
push dword [eax + 0x20]
call esi
xor ecx, ecx
cmp eax, ebx
setg cl
mov esi, 0x2f4
lea eax, [ebp - 0x83c]
mov dword [ebp - 0x56c], ecx
push esi
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x78]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4026d9
cmp dword [ebp - 0x18], ebx
je 0x4026d9
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [eax + 8]
cmp eax, ebx
mov dword [ebp + 8], edi
je 0x4026d5
push esi
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::Write
cmp edi, ebx
jne 0x4026b7
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::Close
push 0x1f4
push 1
push 9
lea eax, [ebp - 0x23c]
push str.PATCH_FILES
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00402f25
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x402719
lea eax, [ebp - 0x444]
push eax
call fcn.00403852
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040fcb2
cmp dword [ebp + 8], ebx
jne 0x4024e0
cmp dword [ebp - 0x18], ebx
je 0x4024e0
push 1
pop eax
jmp 0x4024e2