Function at 0x4eba60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x5b46a4]
xor eax, esp
mov dword [esp + 0x48], eax
cmp byte [0x564a98], 0
mov eax, dword [ebp + 8]
mov edx, dword [0x5c1aa8]
push ebx
push esi
mov dword [esp + 0x10], 0
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0x564a98
jne 0x4ebaab
mov dword [esp + 0x10], 0
jmp 0x4ebac0
mov ecx, 0x564a98
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ebab3
sub ecx, esi
mov dword [esp + 0x10], ecx
lea esi, [edx + 0x14]
mov dword [esp + 0x18], 0
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e3e80
mov ebx, dword [esi]
mov edi, eax
cmp edi, ebx
je 0x4ebaf5
lea edx, [edi + 0x10]
lea ecx, [esp + 0xc]
call fcn.004de120
test al, al
jne 0x4ebaf5
mov dword [esp + 0x18], edi
jmp 0x4ebaf7
mov edi, ebx
mov esi, dword [esp + 0x14]
cmp edi, ebx
jne 0x4ebb13
push str.vmodule
mov ecx, esi
call fcn.004df430
test al, al
je 0x4ebc2b
cmp dword [0x5c1b24], 0
je 0x4ebb2a
cmp byte [0x5c2bfc], 0
jne 0x4ebcf9
int3
mov eax, dword [0x5c1b40]
push 0x10
mov dword [0x5c1b24], eax
call fcn.00539d85
add esp, 4
mov dword [esp + 0xc], str.vmodule
cmp byte [str.vmodule], 0
mov edi, eax
jne 0x4ebb5b
mov dword [esp + 0x10], 0
jmp 0x4ebb70
mov ecx, str.vmodule
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ebb63
sub ecx, edx
mov dword [esp + 0x10], ecx
cmp byte [0x564a98], 0
mov dword [esp + 0x18], 0x564a98
jne 0x4ebb8b
mov dword [esp + 0x1c], 0
jmp 0x4ebba0
mov ecx, 0x564a98
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ebb93
sub ecx, edx
mov dword [esp + 0x1c], ecx
push ecx
lea eax, [esp + 0x10]
mov ecx, esi
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004df4b0
push eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004df4b0
push eax
mov ecx, edi
call fcn.005044a0
mov dword [0x5c1b40], eax
mov eax, dword [esp + 0x38]
cmp eax, 0x10
jb 0x4ebbe9
inc eax
lea ecx, [esp + 0x24]
push eax
push dword [esp + 0x28]
call fcn.004e2910
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
cmp eax, 0x10
jb 0x4ebc16
inc eax
lea ecx, [esp + 0x3c]
push eax
push dword [esp + 0x40]
call fcn.004e2910
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
mov dword [0x5bd7a8], eax
test al, 1
jne 0x4ebc4e
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5c1b38]
test eax, eax
je 0x4ebc68
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5c1b38], 0
mov edx, dword [0x5c1b3c]
test edx, edx
jne 0x4ebc97
push 0x18
call fcn.00539d85
mov edx, eax
add esp, 4
xor eax, eax
mov dword [0x5c1b3c], edx
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
mov esi, dword [ebx + 4]
cmp word [esi], 0
jne 0x4ebca4
xor ecx, ecx
jmp 0x4ebcbf
mov ecx, esi
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ebcb0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004e1f10
cmp dword [ebx + 0xc], 0
jne 0x4ebce2
mov eax, dword [0x5c1b3c]
cmp dword [eax + 0x14], 8
jb 0x4ebcdb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004eb8c0
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
push 1
call fcn.00549dc3
int3