Function at 0x46d060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f9288
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x6b7e40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x28]
cmp eax, 4
je 0x46d3f0
cmp eax, 5
je 0x46d3f0
mov ecx, dword [ecx]
test ecx, ecx
je 0x46d0df
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.00476750
cmp dword [ebp - 0x98], 1
lea ecx, [ebp - 0x98]
je 0x46d0da
call fcn.004628f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004628f0
push ecx
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
lea ecx, [ebp - 0x70]
call fcn.004466a0
sub esp, 0x28
mov ecx, esp
push eax
mov dword [ebp - 4], 0
call fcn.00453130
lea ecx, [ebp - 0x18]
call fcn.00436150
add esp, 0x28
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x46d134
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
call fcn.00414b70
test al, al
je 0x46d3cf
lea ecx, [ebp - 0x40]
call fcn.004b029e
push str.LockFile.dat
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004021e0
push 0
push 0
push 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
push 1
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
lea ebx, [ebp - 0x10]
call fcn.004046f0
add eax, 0x10
add esp, 4
mov edx, ebx
lea ecx, [ebp - 0x40]
mov dword [esi], eax
call fcn.00415cb0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
add esp, 0x14
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46d1b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46d3c3
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
test eax, eax
jle 0x46d3c3
jmp 0x46d1d0
test ecx, ecx
js 0x46d3be
cmp ecx, eax
jge 0x46d3be
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + ecx*4]
sub eax, 0x10
push eax
call fcn.004046f0
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 5
call fcn.004a4516
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46d3b4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 6
call fcn.004a4516
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46d3b4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 7
call fcn.004a4516
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46d3b4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push ecx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
mov dl, 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00435360
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x46d29f
test al, 0x10
je 0x46d326
call fcn.004a4516
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46d3b4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push edi
push ebx
lea eax, [ebp - 0x10]
push str.DELETED_ROGUE_LOCK_FILE__comp__s__user__s_
push eax
mov byte [ebp - 4], 0xa
call fcn.00404520
add esp, 0xc
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x1346
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 0
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46d326
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46d346
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46d363
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46d383
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46d3a0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 0x14]
jge 0x46d3c3
mov eax, dword [ebp - 0x38]
jmp 0x46d1d0
push 0x80004005
call fcn.00402040
call fcn.004a3fa3
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004b02b5
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x46d3f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret