Function at 0x42edb0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x489a6e
mov eax, dword fs:[0]
push eax
mov eax, 0x10f0
call fcn.00465640
mov eax, dword [0x4bdbb0]
xor eax, esp
mov dword [esp + 0x10ec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bdbb0]
xor eax, esp
push eax
lea eax, [esp + 0x1104]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1118]
mov ecx, dword [esp + 0x112c]
mov edx, dword [esp + 0x1130]
mov esi, dword [esp + 0x1114]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1134]
push str.PackageODMFile_CompressODMFileToMemory_1_
mov dword [esp + 0x40], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call fcn.00427230
push 0x3fe
xor ebp, ebp
lea edx, [esp + 0xd0a]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0xd10], cx
call fcn.00463850
mov eax, dword [esp + 0x1130]
mov ecx, dword [esp + 0x112c]
add esp, 0x10
push ebp
push ebp
push eax
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x3c], ebp
call fcn.0042ca90
push 0xa
lea ecx, [esp + 0x48]
mov dword [esp + 0x1110], ebp
call fcn.0042d510
push 0x1fe
lea eax, [esp + 0xb06]
xor edx, edx
push ebp
push eax
mov byte [esp + 0x1118], 1
mov word [esp + 0xb0c], dx
call fcn.00463850
add esp, 0xc
call fcn.00449852
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x42eec1
push 0x80004005
call fcn.004108b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x110c], 2
cmp esi, ebp
jne 0x42ef2d
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x110c], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ef01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x110c], 0
call fcn.0042db20
lea ecx, [esp + 0x60]
mov dword [esp + 0x110c], 0xffffffff
call fcn.0042ce00
xor eax, eax
jmp 0x42f54b
push str.PackageODMFile_CompressODMFileToMemory_2_
call fcn.00427230
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42ef52
test al, 0x10
je 0x42ef52
mov dword [esp + 0x2c], 1
push str.PackageODMFile_CompressODMFileToMemory_3_
call fcn.00427230
add esp, 4
cmp dword [esp + 0x2c], ebp
je 0x42f044
push 0x3fe
lea edx, [esp + 0x706]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x70c], cx
call fcn.00463850
add esp, 0xc
push esi
lea eax, [esp + 0x704]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x700]
push ecx
call edi
cmp word [esp + eax*2 + 0x6fe], 0x5c
jne 0x42efc7
lea edx, [esp + 0x700]
push edx
call edi
xor ecx, ecx
mov word [esp + eax*2 + 0x6fe], cx
lea edx, [esp + 0x700]
push 0x5c
push edx
call fcn.0046450c
add esp, 8
test eax, eax
je 0x42eff4
lea eax, [esp + 0x700]
push 0x5c
push eax
call fcn.0046450c
add esp, 8
xor ecx, ecx
mov word [eax], cx
push 1
push ecx
lea edx, [esp + 0x708]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00411f40
lea eax, [esp + 0x4c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
mov byte [esp + 0x1120], 3
call fcn.00411f40
lea ecx, [esp + 0x70]
mov byte [esp + 0x111c], 2
call fcn.0042e070
push str.PackageODMFile_CompressODMFileToMemory_3_1_
call fcn.00427230
jmp 0x42f0e9
push esi
lea ecx, [esp + 0x18]
call fcn.00411f40
mov bl, 4
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x1110], bl
call fcn.00411f40
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x112c], 5
call fcn.0042d920
lea ecx, [esp + 0x54]
call fcn.0042db50
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x110c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f0b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x110c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f0db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.PackageODMFile_CompressODMFileToMemory_3_2_
call fcn.00427230
mov ebx, dword [esp + 0x1c]
add esp, 4
push str.PackageODMFile_CompressODMFileToMemory_4_
call fcn.00427230
add esp, 4
lea ecx, [esp + 0xd00]
push ecx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0xd00]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42f116
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0xcfe], 0x5c
je 0x42f143
push 0x4a2058
lea edx, [esp + 0xd04]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.PackageODMFile_CompressODMFileToMemory_5_
call fcn.00427230
mov eax, dword [esp + 0x28]
add esp, 4
push eax
lea ecx, [esp + 0x64]
call fcn.0042d0a0
test eax, eax
je 0x42eedd
push str.PackageODMFile_CompressODMFileToMemory_6_
call fcn.00427230
mov eax, dword [esp + 0x4c]
add esp, 4
mov dword [esp + 0x14], 1
test eax, eax
je 0x42f4dc
jmp 0x42f194
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
xor edx, edx
mov esi, eax
push 0x3fe
push edx
lea eax, [esp + 0x70a]
push eax
mov dword [esp + 0x30], ecx
add esi, 8
mov dword [esp + 0x2c], 0
mov word [esp + 0x70c], dx
call fcn.00463850
mov eax, dword [esi]
push 0x100
lea ecx, [esp + 0xb10]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.00465992
lea edx, [esp + 0xb30]
push 0x100
push edx
call fcn.00466400
push ebp
push str.PackageODMFile_CompressODMFileToMemory_6__d_1
call fcn.00427230
mov eax, dword [esi]
add esp, 0x40
push eax
call fcn.00431920
mov edi, eax
add esp, 4
test edi, edi
jne 0x42f230
push ebp
push str.PackageODMFile_CompressODMFileToMemory_6__d_2__bIsFolder_
call fcn.00427230
mov eax, dword [esi]
push eax
call fcn.0042ddf0
add esp, 0xc
mov dword [esp + 0x20], eax
push ebp
push str.PackageODMFile_CompressODMFileToMemory_6__d_3__bIsFolder_
call fcn.00427230
add esp, 8
test edi, edi
jne 0x42f463
cmp dword [esp + 0x20], edi
je 0x42f463
mov edi, dword [esp + 0x38]
test edi, edi
je 0x42f463
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x42f463
push ebp
push str.PackageODMFile_CompressODMFileToMemory_6__d_3_1__bIsFolder_
call fcn.00427230
mov eax, dword [esi]
push ebx
lea ecx, [esp + 0x70c]
push ecx
push eax
call edi
add esp, 0x14
test eax, eax
je 0x42f4d1
push ebp
push str.PackageODMFile_CompressODMFileToMemory_6__d_3_2__bIsFolder_
call fcn.00427230
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0xb08]
push edx
push ebx
lea edi, [esi + 4]
push eax
push ecx
lea edx, [esp + 0x30]
push str.padi__m_szFilePath:_s_padi__m_szFileName:_s_pszFileExt:_s_szExt:_s
push edx
call fcn.004135e0
mov eax, dword [esp + 0x38]
add esp, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00411090
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1dc]
call fcn.0042d680
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x44], esp
mov ebx, esp
push eax
mov byte [esp + 0x1114], 7
call fcn.00411090
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x1e0]
mov dword [ebx], eax
call fcn.0042d9a0
cmp eax, 1
jne 0x42f3a1
push ebp
push str.PackageODMFile_CompressODMFileToMemory_6__d_3_2_1__bIsFolder_
call fcn.00427230
mov ecx, dword [esp + 0x24]
add esp, 8
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1e4]
call fcn.0042ecd0
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1110], 8
call fcn.00419550
push eax
lea ecx, [esp + 0x34]
call fcn.004112e0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x1110], 9
call fcn.00411910
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00411910
lea ecx, [esp + 0x30]
call fcn.004111f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x110c], 7
call fcn.004111f0
push ebp
push str.PackageODMFile_CompressODMFileToMemory_6__d_3_3__bIsFolder_
call fcn.00427230
mov ebx, dword [esp + 0x44]
mov eax, dword [edi]
push 0
push 0
push 0x80
push ebx
push 0
push 0
push 0
push 0
push eax
call fcn.00465992
mov eax, dword [esp + 0x60]
push eax
push 0x80
push ebx
call fcn.00468247
add esp, 0x38
lea ecx, [esp + 0x700]
push ecx
mov ecx, esi
call fcn.00411dd0
mov edx, dword [edi]
mov eax, dword [esi]
push ebx
push edx
push eax
lea ecx, [esp + 0x24]
push str.CDG_FILE_decryptPath:_s_name:_s_pszCommpressFileName:_s
push ecx
call fcn.004135e0
mov edx, dword [esp + 0x2c]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x1dc]
add eax, 0xfffffff0
mov byte [esp + 0x110c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f43b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x110c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f463
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
push str.PackageODMFile_CompressODMFileToMemory_6__d_4__bIsFolder_
call fcn.00427230
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
add esp, 8
push edx
xor edx, edx
cmp byte [esi + 8], dl
setne dl
dec edx
push edx
push eax
push ecx
lea ecx, [esp + 0x70]
call fcn.0042cb80
test eax, eax
jne 0x42f498
mov dword [esp + 0x14], eax
push ebp
push str.PackageODMFile_CompressODMFileToMemory_6__d_5__bIsFolder_
call fcn.00427230
add esp, 8
cmp dword [esp + 0x20], 0
je 0x42f4bb
lea eax, [esp + 0x700]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
push str.PackageODMFile_CompressODMFileToMemory_6__d_6__bIsFolder_
call fcn.00427230
add esp, 8
cmp dword [esp + 0x14], 0
je 0x42f4dc
inc ebp
cmp dword [esp + 0x24], 0
jne 0x42f190
lea ecx, [esp + 0x60]
call fcn.0042cae0
test ebp, ebp
jne 0x42f4ed
mov dword [esp + 0x14], ebp
push str.PackageODMFile_CompressODMFileToMemory_7_
call fcn.00427230
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x110c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f522
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x110c], 0
call fcn.0042db20
lea ecx, [esp + 0x60]
mov dword [esp + 0x110c], 0xffffffff
call fcn.0042ce00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10ec]
xor ecx, esp
call fcn.004644d0
add esp, 0x10fc
ret