Function at 0x49cc50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9f80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebx + 0x4a8]
test esi, esi
je 0x49cf97
lea ebx, [esi + 8]
lock inc dword [ebx]
mov edi, dword [esi]
push edi
call fcn.004a27e0
push eax
push edi
call fcn.004a29e0
mov dword [ebp - 0x14], eax
add esp, 0xc
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
jne 0x49cce8
mov eax, dword [esi]
test eax, eax
je 0x49ccc6
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x49ccdd
push eax
call fcn.004a71f6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004a71e8
add esp, 8
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x558]
test eax, eax
je 0x49cd10
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 0x558], 0
mov dword [ebx + 0x55c], 0
lea ecx, [ebx + 0x3b0]
mov dword [ebp - 0x18], ecx
call fcn.00463da0
mov eax, dword [ebx + 0x570]
cmp eax, dword [ebx + 0x574]
je 0x49cd32
mov dword [ebx + 0x574], eax
cmp byte [ebx + 0x584], 0
je 0x49cd56
lea ecx, [ebp - 0x14]
call fcn.004a2a40
test eax, eax
je 0x49cd56
lea ecx, [ebp - 0x14]
call fcn.004a2380
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebx + 0x588]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x49cd83
nop dword [eax + eax]
mov esi, dword [eax]
push 0x20
push eax
call fcn.004a71e8
add esp, 8
mov eax, esi
test esi, esi
jne 0x49cd70
mov eax, dword [ebx + 0x588]
mov dword [eax], eax
mov eax, dword [ebx + 0x588]
mov dword [eax + 4], eax
mov dword [ebx + 0x58c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x49cdb1
call fcn.004a2a20
mov ecx, dword [ebx + 0x588]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x49cde3
nop dword [eax]
mov esi, dword [eax]
push 0x20
push eax
call fcn.004a71e8
add esp, 8
mov eax, esi
test esi, esi
jne 0x49cdd0
push 0x20
push dword [ebx + 0x588]
call fcn.004a71e8
mov esi, dword [ebx + 0x570]
add esp, 8
test esi, esi
je 0x49ce5e
mov ecx, dword [ebx + 0x578]
mov eax, 0x66666667
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
cmp ecx, 0x1000
jb 0x49ce36
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x49cfb1
mov esi, edx
push ecx
push esi
call fcn.004a71e8
mov dword [ebx + 0x570], 0
add esp, 8
mov dword [ebx + 0x574], 0
mov dword [ebx + 0x578], 0
lea edi, [ebx + 0x524]
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0044fca0
mov eax, dword [edi + 0x24]
lea esi, [edi + 0x24]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.00425e90
push 0x1c
push dword [esi]
call fcn.004a71e8
mov ecx, dword [edi + 0x18]
add esp, 8
test ecx, ecx
je 0x49cee2
mov eax, dword [edi + 0x20]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
cmp edx, 0x1000
jb 0x49cec3
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x49cfb1
mov ecx, esi
push edx
push ecx
call fcn.004a71e8
mov dword [edi + 0x18], 0
add esp, 8
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea esi, [ebx + 0x4f0]
lea ecx, [esi + 0x18]
call fcn.00426a30
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebx + 0x4b8]
call fcn.0041ce70
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.00463da0
mov esi, dword [ebx + 0xf8]
test esi, esi
je 0x49cf6e
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x49cf64
mov eax, dword [esi]
test eax, eax
je 0x49cf42
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x49cf59
push eax
call fcn.004a71f6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004a71e8
add esp, 8
mov dword [ebx + 0xf8], 0
lea eax, [ebx + 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
push 0
call fcn.004a27e0
push eax
push 0
call fcn.004a29e0
add esp, 0xc
mov dword [ebp - 0x14], eax
jmp 0x49cceb
call fcn.004aeb2f
int3