Function at 0x499c00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8340
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x517ba0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebx + 0x4a8]
lea edi, [ebx + 0x3b0]
mov dword [ebp - 0x14], edi
test esi, esi
je 0x499f37
lea ebx, [esi + 8]
lock inc dword [ebx]
mov edi, dword [esi]
push edi
call fcn.0049fbd0
push eax
push edi
call fcn.0049fd60
mov dword [ebp - 0x10], eax
add esp, 0xc
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
jne 0x499c9e
mov eax, dword [esi]
test eax, eax
je 0x499c7c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x499c93
push eax
call fcn.004a447f
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004a4471
add esp, 8
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x558]
test eax, eax
je 0x499cc9
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 0x558], 0
mov dword [ebx + 0x55c], 0
mov ecx, edi
call fcn.00461e30
mov eax, dword [ebx + 0x570]
cmp eax, dword [ebx + 0x574]
je 0x499ce4
mov dword [ebx + 0x574], eax
cmp byte [ebx + 0x584], 0
je 0x499d08
lea ecx, [ebp - 0x10]
call fcn.0049fdc0
test eax, eax
je 0x499d08
lea ecx, [ebp - 0x10]
call fcn.0049f770
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 0x499d33
nop dword [eax]
mov esi, dword [eax]
push 0x20
push eax
call fcn.004a4471
add esp, 8
mov eax, esi
test esi, esi
jne 0x499d20
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 - 0x10]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x499d61
call fcn.0049fda0
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 0x499d93
nop dword [eax]
mov esi, dword [eax]
push 0x20
push eax
call fcn.004a4471
add esp, 8
mov eax, esi
test esi, esi
jne 0x499d80
push 0x20
push dword [ebx + 0x588]
call fcn.004a4471
mov esi, dword [ebx + 0x570]
add esp, 8
test esi, esi
je 0x499e0e
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 0x499de6
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x499f51
mov esi, edx
push ecx
push esi
call fcn.004a4471
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.00452690
mov eax, dword [edi + 0x24]
lea esi, [edi + 0x24]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.0042a2d0
push 0x1c
push dword [esi]
call fcn.004a4471
mov ecx, dword [edi + 0x18]
add esp, 8
test ecx, ecx
je 0x499e92
mov eax, dword [edi + 0x20]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
cmp edx, 0x1000
jb 0x499e73
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x499f51
mov ecx, esi
push edx
push ecx
call fcn.004a4471
mov dword [edi + 0x18], 0
add esp, 8
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call edi
lea esi, [ebx + 0x4f0]
lea ecx, [esi + 0x18]
call fcn.0042acc0
push esi
call edi
lea ecx, [ebx + 0x4b8]
call fcn.00421880
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.00461e30
mov esi, dword [ebx + 0xf8]
test esi, esi
je 0x499f1c
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x499f12
mov eax, dword [esi]
test eax, eax
je 0x499ef0
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x499f07
push eax
call fcn.004a447f
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004a4471
add esp, 8
mov dword [ebx + 0xf8], 0
lea eax, [ebx + 0xe0]
push eax
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call fcn.0049fbd0
push eax
push 0
call fcn.0049fd60
add esp, 0xc
mov dword [ebp - 0x10], eax
jmp 0x499ca4
call fcn.004abb2f
int3