Function at 0x4e5d30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5367f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x581d10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp byte [esi + 0x9a], bl
je 0x4e5fb4
lea eax, [esi + 0x324]
lea edi, [esi + 0xa8]
mov dword [ebp - 0x18], eax
jmp 0x4e5d83
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4e5db8
cmp byte [esi + 0x98], 0
jne 0x4e5db8
push ebx
call fcn.004f6c1e
lea eax, [esi + 0xfc]
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x4e5da7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x4e5dfe
lea eax, [ebp - 0x24]
cmp eax, edi
je 0x4e5dfe
mov ebx, dword [edi]
mov dword [edi], esi
mov esi, dword [edi + 4]
mov dword [edi + 4], 0
mov eax, dword [edi + 8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov dword [edi + 8], 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, esi
mov esi, dword [ebp - 0x14]
je 0x4e5e19
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004e6130
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
lea eax, [esi + 0x324]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x9c]
lea ecx, [esi + 0x9c]
cmp eax, dword [ecx + 4]
je 0x4e5e70
lea eax, [ebp - 0x30]
cmp eax, ecx
je 0x4e5e70
mov ebx, dword [ecx]
mov dword [ecx], edi
mov edi, dword [ecx + 4]
mov dword [ecx + 4], 0
mov eax, dword [ecx + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
mov dword [ecx + 8], 0
lea eax, [esi + 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, edi
je 0x4e5f01
cmp dword [esi + 0x64], 0
je 0x4e5ed5
cmp dword [esi + 0x4c], 0
je 0x4e5ed5
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4e5ec9
cmp dword [esi + 0x110], 0x10
lea eax, [esi + 0xfc]
jb 0x4e5ea9
mov eax, dword [eax]
push 0x5596b0
push eax
call fcn.004f6da5
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, esi
push eax
call fcn.004e63b0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4e5ed5
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004e6310
mov esi, ebx
cmp dword [esi + 0x14], 0x10
jb 0x4e5ee7
push dword [esi]
call fcn.004b1ca1
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x4e5ed7
mov edi, ebx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
je 0x4e5f5c
mov esi, ebx
cmp ebx, edi
je 0x4e5f3e
cmp dword [esi + 0x14], 0x10
jb 0x4e5f26
push dword [esi]
call fcn.004b1ca1
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x4e5f16
push ebx
call fcn.004b1ca1
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4e5f88
push eax
call fcn.004b1ca1
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x14]
cmp byte [esi + 0x9a], 0
lea edi, [esi + 0xa8]
lea eax, [esi + 0x324]
jne 0x4e5d80
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4e5fb4
push eax
call fcn.004f6c1e
add esp, 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