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

Disassembly:
push 0xffffffffffffffff
push 0x4860be
mov eax, dword fs:[0]
push eax
mov eax, 0x10f4
call fcn.00462080
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x10f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7b70]
xor eax, esp
push eax
lea eax, [esp + 0x1108]
mov dword fs:[0], eax
mov eax, dword [esp + 0x111c]
mov ecx, dword [esp + 0x1130]
mov ebp, dword [esp + 0x1134]
mov edi, dword [esp + 0x1138]
mov esi, dword [esp + 0x1118]
push 0x3fe
mov dword [esp + 0x28], eax
xor ebx, ebx
lea eax, [esp + 0xd0a]
xor edx, edx
push ebx
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x40], edi
mov word [esp + 0xd10], dx
call fcn.00460290
mov ecx, dword [esp + 0x1130]
mov edx, dword [esp + 0x112c]
add esp, 0xc
push ebx
push ebx
push ecx
push edx
lea ecx, [esp + 0x74]
mov dword [esp + 0x3c], ebx
call fcn.00429e00
push 0xa
lea ecx, [esp + 0x4c]
mov dword [esp + 0x1114], ebx
call fcn.0042a880
push 0x1fe
lea ecx, [esp + 0xb0a]
xor eax, eax
push ebx
push ecx
mov byte [esp + 0x111c], 1
mov word [esp + 0xb10], ax
call fcn.00460290
add esp, 0xc
call fcn.004462c7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42be67
push 0x80004005
call fcn.00410860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x1110], 2
cmp esi, ebx
jne 0x42bed3
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x1110], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bea7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x1110], 0
call fcn.0042ae10
lea ecx, [esp + 0x64]
mov dword [esp + 0x1110], 0xffffffff
call fcn.0042a170
xor eax, eax
jmp 0x42c405
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42bfc8
test al, 0x10
je 0x42bfc8
push 0x3fe
lea edx, [esp + 0x70a]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x38], 1
mov word [esp + 0x710], cx
call fcn.00460290
add esp, 0xc
push esi
lea eax, [esp + 0x708]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x704]
push ecx
call edi
cmp word [esp + eax*2 + 0x702], 0x5c
jne 0x42bf51
lea edx, [esp + 0x704]
push edx
call edi
xor ecx, ecx
mov word [esp + eax*2 + 0x702], cx
lea edx, [esp + 0x704]
push 0x5c
push edx
call fcn.00460f4c
add esp, 8
test eax, eax
je 0x42bf7e
lea eax, [esp + 0x704]
push 0x5c
push eax
call fcn.00460f4c
add esp, 8
xor ecx, ecx
mov word [eax], cx
push 1
push ecx
lea edx, [esp + 0x70c]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00411f10
lea eax, [esp + 0x50]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
mov byte [esp + 0x1124], 3
call fcn.00411f10
lea ecx, [esp + 0x74]
mov byte [esp + 0x1120], 2
call fcn.0042b020
mov edi, dword [esp + 0x34]
jmp 0x42c061
push esi
lea ecx, [esp + 0x18]
call fcn.00411f10
mov bl, 4
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x1114], bl
call fcn.00411f10
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push 0
push 0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x1130], 5
call fcn.0042ac10
lea ecx, [esp + 0x58]
call fcn.0042ae40
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1110], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c039
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 + 0x1110], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c061
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xd04]
push ecx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0xd04]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c080
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0xd02], 0x5c
je 0x42c0ad
push 0x49bcb8
lea edx, [esp + 0xd08]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x68]
call fcn.0042a410
test eax, eax
jne 0x42c0c8
mov eax, dword [esp + 0x18]
jmp 0x42be83
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 1
mov ecx, eax
test eax, eax
je 0x42c39c
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x42c0f4
mov ecx, dword [esp + 0x24]
mov eax, ecx
mov ecx, dword [ecx]
xor edx, edx
push 0x3fe
lea esi, [eax + 8]
push edx
lea eax, [esp + 0x70e]
push eax
mov dword [esp + 0x30], ecx
mov word [esp + 0x710], dx
call fcn.00460290
mov eax, dword [esi]
push 0x100
lea ecx, [esp + 0xb14]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.004623d2
lea edx, [esp + 0xb34]
push 0x100
push edx
call fcn.00462dcf
mov eax, dword [esi]
push eax
call fcn.00429cf0
add esp, 0x3c
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
jne 0x42c342
test eax, eax
je 0x42c342
test edi, edi
je 0x42c342
test ebp, ebp
je 0x42c342
mov eax, dword [esi]
push ebp
lea ecx, [esp + 0x708]
push ecx
push eax
call edi
add esp, 0xc
test eax, eax
je 0x42c391
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0xb04]
push edx
push ebp
lea edi, [esi + 4]
push eax
push ecx
lea edx, [esp + 0x28]
push str.padi__m_szFilePath:_s_padi__m_szFileName:_s_pszFileExt:_s_szExt:_s
push edx
call fcn.00413570
mov eax, dword [esp + 0x30]
add esp, 0x18
push eax
call ebx
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00411050
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1e0]
call fcn.004111b0
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x48], esp
mov ebp, esp
push eax
mov byte [esp + 0x1118], 7
call fcn.00411050
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x1e4]
mov dword [ebp], eax
call fcn.0042ac90
cmp eax, 1
jne 0x42c28f
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1e8]
call fcn.0042bc80
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1114], 8
call fcn.004198b0
push eax
lea ecx, [esp + 0x3c]
call fcn.004112e0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x1114], 9
call fcn.004118e0
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.004118e0
lea ecx, [esp + 0x38]
call fcn.0042a9f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1110], 7
call fcn.0042a9f0
mov ebp, dword [esp + 0x40]
mov eax, dword [edi]
push 0
push 0
push 0x80
push ebp
push 0
push 0
push 0
push 0
push eax
call fcn.004623d2
mov eax, dword [esp + 0x60]
push eax
push 0x80
push ebp
call fcn.00464c87
add esp, 0x30
lea ecx, [esp + 0x704]
push ecx
mov ecx, esi
call fcn.00411da0
mov edx, dword [edi]
mov eax, dword [esi]
push ebp
push edx
push eax
lea ecx, [esp + 0x24]
push str.CDG_FILE_decryptPath:_s_name:_s_pszCommpressFileName:_s
push ecx
call fcn.00413570
mov edx, dword [esp + 0x2c]
add esp, 0x14
push edx
call ebx
mov eax, dword [esp + 0x1e0]
add eax, 0xfffffff0
mov byte [esp + 0x1110], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c31a
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 + 0x1110], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c342
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x2c]
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 + 0x74]
call fcn.00429ef0
test eax, eax
jne 0x42c369
mov dword [esp + 0x14], eax
cmp dword [esp + 0x28], 0
je 0x42c37e
lea eax, [esp + 0x704]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x14], 0
je 0x42c39c
inc dword [esp + 0x20]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x24], 0
jne 0x42c0f0
lea ecx, [esp + 0x64]
call fcn.00429e50
cmp dword [esp + 0x20], 0
jne 0x42c3b4
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x1110], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c3dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x1110], 0
call fcn.0042ae10
lea ecx, [esp + 0x64]
mov dword [esp + 0x1110], 0xffffffff
call fcn.0042a170
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10f0]
xor ecx, esp
call fcn.00460f10
add esp, 0x1100
ret