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

Disassembly:
push 0xffffffffffffffff
push 0x485d32
mov eax, dword fs:[0]
push eax
sub esp, 0xbc0
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0xbbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7b70]
xor eax, esp
push eax
lea eax, [esp + 0xbd4]
mov dword fs:[0], eax
mov edx, dword [esp + 0xc00]
mov eax, dword [esp + 0xbe8]
mov ecx, dword [esp + 0xbfc]
mov esi, dword [esp + 0xbe4]
push 0x3fe
mov dword [esp + 0x2c], edx
xor ebp, ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc08]
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x7d6]
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x38], eax
mov word [esp + 0x7dc], cx
call fcn.00460000
mov eax, dword [esp + 0xbfc]
mov ecx, dword [esp + 0xbf8]
add esp, 0xc
push ebp
push ebp
push eax
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x30], ebp
call fcn.00429d00
push 0xa
lea ecx, [esp + 0x3c]
mov dword [esp + 0xbe0], ebp
call fcn.0042a780
push 0x1fe
lea eax, [esp + 0x5d6]
xor edx, edx
push ebp
push eax
mov byte [esp + 0xbe8], 1
mov word [esp + 0x5dc], dx
call fcn.00460000
add esp, 0xc
call fcn.0044602e
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x42bae3
push 0x80004005
call fcn.004108b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov byte [esp + 0xbdc], 2
cmp esi, ebp
jne 0x42bb4f
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xbdc], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bb23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xbdc], 0
call fcn.0042ab70
lea ecx, [esp + 0x54]
mov dword [esp + 0xbdc], 0xffffffff
call fcn.0042a070
xor eax, eax
jmp 0x42bf4b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42bc44
test al, 0x10
je 0x42bc44
push 0x3fe
lea edx, [esp + 0x1d6]
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x2c], 1
mov word [esp + 0x1dc], cx
call fcn.00460000
add esp, 0xc
push esi
lea eax, [esp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x1d0]
push ecx
call edi
cmp word [esp + eax*2 + 0x1ce], 0x5c
jne 0x42bbcd
lea edx, [esp + 0x1d0]
push edx
call edi
xor ecx, ecx
mov word [esp + eax*2 + 0x1ce], cx
lea edx, [esp + 0x1d0]
push 0x5c
push edx
call fcn.00460cbc
add esp, 8
test eax, eax
je 0x42bbfa
lea eax, [esp + 0x1d0]
push 0x5c
push eax
call fcn.00460cbc
add esp, 8
xor ecx, ecx
mov word [eax], cx
push 1
push ecx
lea edx, [esp + 0x1d8]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00411f70
lea eax, [esp + 0x40]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
mov byte [esp + 0xbf0], 3
call fcn.00411f70
lea ecx, [esp + 0x64]
mov byte [esp + 0xbec], 2
call fcn.0042ad80
mov edi, dword [esp + 0x1c]
jmp 0x42bcdb
push esi
lea ecx, [esp + 0x18]
call fcn.00411f70
mov bl, 4
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbe0], bl
call fcn.00411f70
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x44], esp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0xbfc], 5
call fcn.0042aaf0
lea ecx, [esp + 0x48]
call fcn.0042aba0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xbdc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bcb3
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 + 0xbdc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bcdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x7d0]
push ecx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x7d0]
lea edx, [eax + 2]
jmp 0x42bd00
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42bd00
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x7ce], 0x5c
je 0x42bd2d
push 0x49bc48
lea edx, [esp + 0x7d4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x58]
call fcn.0042a310
test eax, eax
je 0x42baff
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], 1
cmp edi, ebp
je 0x42bee7
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ecx, ecx
push 0x3fe
mov eax, edi
mov edi, dword [edi]
push ecx
lea edx, [esp + 0x1da]
push edx
lea esi, [eax + 8]
mov word [esp + 0x1dc], cx
call fcn.00460000
mov eax, dword [esi]
push 0x100
lea ecx, [esp + 0x5e0]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.00462142
lea edx, [esp + 0x600]
push 0x100
push edx
call fcn.00462b3f
mov eax, dword [esi]
push eax
call fcn.00429bf0
add esp, 0x3c
cmp dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
jne 0x42be96
test eax, eax
je 0x42be96
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x42be96
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x42be96
mov eax, dword [esi]
push ebx
lea edx, [esp + 0x1d4]
push edx
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x42bedd
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [esp + 0x5d0]
push eax
push ebx
push ecx
push edx
lea eax, [esp + 0x2c]
push str.padi__m_szFilePath:_s_padi__m_szFileName:_s_pszFileExt:_s_szExt:_s
push eax
call fcn.004135e0
mov ecx, dword [esp + 0x34]
add esp, 0x18
push ecx
call ebp
mov ebx, dword [esp + 0x30]
mov eax, dword [esi + 4]
push 0
push 0
push 0x80
push ebx
push 0
push 0
push 0
push 0
push eax
call fcn.00462142
mov edx, dword [esp + 0x4c]
push edx
push 0x80
push ebx
call fcn.004649f7
add esp, 0x30
lea eax, [esp + 0x1d0]
push eax
mov ecx, esi
call fcn.00411e00
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ebx
push ecx
push edx
lea eax, [esp + 0x28]
push str.CDG_FILE_decryptPath:_s_name:_s_pszCommpressFileName:_s
push eax
call fcn.004135e0
mov ecx, dword [esp + 0x30]
add esp, 0x14
push ecx
call ebp
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edx
xor edx, edx
cmp byte [esi + 8], dl
setne dl
dec edx
push edx
push eax
push ecx
lea ecx, [esp + 0x64]
call fcn.00429df0
test eax, eax
jne 0x42bebd
mov dword [esp + 0x14], eax
cmp dword [esp + 0x24], 0
je 0x42bed2
lea eax, [esp + 0x1d0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x14], 0
je 0x42bee5
inc dword [esp + 0x18]
test edi, edi
jne 0x42bd61
xor ebp, ebp
lea ecx, [esp + 0x54]
call fcn.00429d50
cmp dword [esp + 0x18], ebp
jne 0x42befa
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xbdc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bf22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xbdc], 0
call fcn.0042ab70
lea ecx, [esp + 0x54]
mov dword [esp + 0xbdc], 0xffffffff
call fcn.0042a070
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xbd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbbc]
xor ecx, esp
call fcn.00460c80
add esp, 0xbcc
ret