Function at 0x440820
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4757a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48a2c4]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
cmp edi, 0xffffffff
je 0x440b19
mov eax, dword [esi + 0x13c]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp edi, eax
jge 0x440b19
push edi
mov ecx, esi
call fcn.0042f690
mov ebp, eax
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x440b19
cmp dword [esp + 0x3c], 0
je 0x440899
push ebp
mov ecx, esi
call fcn.00440750
mov ecx, dword [0x488014]
mov dword [esp + 0x34], ecx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], 0
test eax, eax
je 0x4409f6
cmp eax, 1
jne 0x4408e9
push str.NoneUnlock
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.004346f0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 1
call fcn.0041b980
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], 0
call fcn.00412420
cmp dword [ebp + 0x10], 2
jne 0x44091d
push str.UnlockSuccess
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.004346f0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 2
call fcn.0041b980
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], 0
call fcn.00412420
mov ebx, 3
cmp dword [ebp + 0x10], ebx
jne 0x440954
push str.UnlockFail
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.004346f0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], bl
call fcn.0041b980
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], 0
call fcn.00412420
mov eax, dword [ebp]
push eax
call fcn.0041c430
add esp, 4
test eax, eax
jne 0x4409bd
cmp dword [ebp + 0x10], 4
jne 0x440998
push str.DeleteSuccess
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.004346f0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 4
call fcn.0041b980
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], 0
call fcn.00412420
cmp dword [ebp + 0x10], 5
jne 0x440a7a
push str.DeleteFail
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.004346f0
mov byte [esp + 0x2c], 5
jmp 0x440a62
cmp dword [ebp + 4], 0
jne 0x4409de
push str.FileUnlock
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.004346f0
mov byte [esp + 0x2c], 6
jmp 0x440a62
push str.Filelock
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.004346f0
mov byte [esp + 0x2c], 7
jmp 0x440a62
cmp dword [ebp + 4], 0
jne 0x440a14
push str.FileUnlock
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.004346f0
mov byte [esp + 0x2c], 8
jmp 0x440a2a
push str.Filelock
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.004346f0
mov byte [esp + 0x2c], 9
push eax
lea ecx, [esp + 0x38]
call fcn.0041b980
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], 0
call fcn.00412420
mov ecx, esi
call fcn.0042e3c0
cmp eax, 4
jne 0x440a7a
push str.WaitDeleteing
lea edx, [esp + 0x40]
push edx
call fcn.004346f0
mov byte [esp + 0x2c], 0xa
push eax
lea ecx, [esp + 0x38]
call fcn.0041b980
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], 0
call fcn.00412420
cmp dword [ebp + 0x4c], 0
je 0x440aae
push str.SysAppLock
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.004346f0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0xb
call fcn.0041b980
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], 0
call fcn.00412420
mov eax, dword [ebp]
push eax
call fcn.0041c430
add esp, 4
test eax, eax
je 0x440aec
push str.DisableUnLockDirectory
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.004346f0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0xc
call fcn.0041b980
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], 0
call fcn.00412420
mov edx, dword [esp + 0x34]
push 0
push 0
push 0
push 0
push edx
push 1
push 1
push edi
lea ecx, [esi + 0x13c]
call fcn.0042f580
cmp dword [esp + 0x38], 0
jne 0x440b20
lea ecx, [esp + 0x34]
call fcn.00412420
xor eax, eax
jmp 0x441004
mov eax, dword [esi + 0x3c0]
push 0
push 0
lea edi, [esi + 0x3c0]
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0x10], 0
je 0x440b4b
mov ecx, dword [ebp + 8]
mov dword [esp + 0x38], ecx
jmp 0x440b52
mov edx, dword [ebp + 4]
mov dword [esp + 0x38], edx
mov eax, dword [0x488014]
mov dword [esp + 0x3c], eax
mov ecx, dword [ebp + 0x4c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x44]
push str.nLockStatus__x_pInfo__bSysAppLock__d
push eax
mov byte [esp + 0x3c], 0xd
call fcn.0042db50
mov ecx, dword [esp + 0x4c]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 0x4c], 0
je 0x440c07
push str.FileLockTypeSysAppcheck
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.004346f0
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.00411ad0
push eax
mov ecx, edi
call fcn.00430d20
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.00412420
push str.DisableUnLockInfo
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004346f0
mov eax, dword [eax]
push eax
push 1
push ebx
mov ecx, edi
call fcn.0042f810
lea ecx, [esp + 0x1c]
call fcn.00412420
push 0x6c5538
push 0
lea ecx, [esi + 0x3bc]
push ebx
call fcn.004172c0
push 0x6c5538
push 1
push ebx
lea ecx, [esi + 0x3bc]
call fcn.004172c0
test byte [esp + 0x38], 2
je 0x440c62
push str.FileLockTypeLockfile
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004346f0
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.00411ad0
push eax
mov ecx, edi
call fcn.00430d20
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.00412420
push 0x6c5538
push 0
lea ecx, [esi + 0x3bc]
push ebx
call fcn.004172c0
push 0x6c5538
push 1
push ebx
lea ecx, [esi + 0x3bc]
call fcn.004172c0
test byte [esp + 0x38], 1
je 0x440cbd
push str.FileLockTypeReadonly
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.004346f0
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.00411ad0
push eax
mov ecx, edi
call fcn.00430d20
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.00412420
push 0x6c5538
push 0
lea ecx, [esi + 0x3bc]
push ebx
call fcn.004172c0
push 0x6c5538
push 1
push ebx
lea ecx, [esi + 0x3bc]
call fcn.004172c0
test byte [esp + 0x38], 4
je 0x440d18
push str.FileLockTypeAccesscheck
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004346f0
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.00411ad0
push eax
mov ecx, edi
call fcn.00430d20
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.00412420
push 0x6c5538
push 0
lea ecx, [esi + 0x3bc]
push ebx
call fcn.004172c0
push 0x6c5538
push 1
push ebx
lea ecx, [esi + 0x3bc]
call fcn.004172c0
test byte [esp + 0x38], 8
je 0x440e6f
push str.FileLockTypeHandleowner
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004346f0
mov eax, dword [eax]
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x34], 0xe
call fcn.0042db50
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0xd
call fcn.00412420
mov eax, dword [ebp + 0x24]
sub eax, dword [ebp + 0x20]
xor ebx, ebx
sar eax, 3
mov dword [esp + 0x18], ebx
test eax, eax
jbe 0x440ea3
jmp 0x440d74
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x24]
sub ecx, dword [ebp + 0x20]
mov dword [esp + 0x1c], 0
sar ecx, 3
cmp ebx, ecx
jb 0x440d8e
call fcn.00448cbe
mov edx, dword [ebp + 0x20]
lea eax, [edx + ebx*8]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0043f740
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 8], 0
mov byte [esp + 0x2c], 0xf
jne 0x440dd2
mov ecx, esi
call fcn.0042f710
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0xd
call fcn.00412420
jmp 0x440e53
mov ecx, dword [edi]
push 0
push 0
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
mov ebp, eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0
push 0
push 0
push 0
push eax
push ebp
push 1
mov ecx, edi
call fcn.0042f870
cmp dword [esp + 0x1c], 0
mov ebp, eax
je 0x440e16
push ebx
push 1
push ebp
mov ecx, edi
call fcn.0042f810
jmp 0x440e1d
mov ecx, esi
call fcn.0042f710
push 0x6c5538
push 0
lea ebx, [esi + 0x3bc]
push ebp
mov ecx, ebx
call fcn.004172c0
push 0x6c5538
push 1
push ebp
mov ecx, ebx
call fcn.004172c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0xd
call fcn.00412420
mov ebp, dword [esp + 0x20]
mov edx, dword [ebp + 0x24]
sub edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x18]
inc eax
sar edx, 3
mov dword [esp + 0x18], eax
cmp eax, edx
jb 0x440d70
jmp 0x440ea3
push str.FileLockTypeLockType
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004346f0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x34], 0x10
call fcn.0042db50
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 0xd
call fcn.00412420
cmp dword [esp + 0x38], 0
jne 0x440ede
push str.FileLockTypeUnLock
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.004346f0
mov eax, dword [eax]
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x34], 0x11
call fcn.0042db50
add esp, 8
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0xd
call fcn.00412420
mov eax, dword [ebp]
push eax
call fcn.0041c430
add esp, 4
test eax, eax
jne 0x440f4a
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x440f78
cmp eax, 4
jne 0x440f2c
push str.DeleteSuccess
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.004346f0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 0x12
call fcn.0041b980
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0xd
call fcn.00412420
cmp dword [ebp + 0x10], 5
jne 0x440f78
push str.DeleteFail
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.004346f0
mov byte [esp + 0x2c], 0x13
jmp 0x440f60
push str.DisableUnLockDirectory
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.004346f0
mov byte [esp + 0x2c], 0x14
push eax
lea ecx, [esp + 0x40]
call fcn.0041b980
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0xd
call fcn.00412420
mov edi, dword [esp + 0x3c]
lea ecx, [esi + 0x3bc]
test ecx, ecx
je 0x440fb9
mov ebp, dword [ebp]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [esp + 0x3c]
call fcn.004151f0
mov edx, dword [esp + 0x38]
push edi
push edx
lea ecx, [esi + 0x2a4]
mov byte [esp + 0x34], 0x15
call fcn.0042db70
lea ecx, [esp + 0x38]
call fcn.00412420
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [edi - 0xc]
cmp eax, dword [0x488010]
je 0x440fdd
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x440fdd
push esi
call fcn.00448106
add esp, 4
mov esi, dword [esp + 0x34]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x488010]
je 0x440fff
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x440fff
push esi
call fcn.00448106
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc