Function at 0x5d761c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5d7a66
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov al, dl
cmp eax, 5
ja case.default.0x5d7655
jmp dword [eax*4 + 0x5d765c]
mov dl, 1
mov eax, dword [0x64dec8]
call fcn.006515a0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5d7710
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x46], 1
mov dl, 1
mov eax, dword [0x41ef24]
call fcn.006515a0
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x38], ebx
mov eax, ebx
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x38]
call fcn.006273fc
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.006265c4
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0055e620
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_DeleteFileW
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5d771a
mov eax, dword [ebp - 0xc]
call fcn.004028c0
jmp case.default.0x5d7655
mov dl, 1
mov eax, dword [0x64ddc0]
call fcn.00650168
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5d77c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x46], 0
mov eax, dword [ebp - 0x10]
call fcn.00650b2c
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 4]
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
call fcn.0055e620
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x1c], 0
setne byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5d77ce
mov eax, dword [ebp - 0x10]
call fcn.004028c0
jmp case.default.0x5d7655
mov dl, 1
mov eax, dword [0x413ffc]
call fcn.00414448
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x3c], ebx
xor eax, eax
push ebp
push 0x5d784e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x28]
test eax, eax
jne 0x5d7821
call fcn.0065e804
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x46], 2
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 4]
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
call fcn.0055e620
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp case.default.0x5d7655
mov dl, 1
mov eax, dword [0x53e230]
call fcn.0053f854
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5d7918
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x28]
test eax, eax
jle 0x5d790e
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x46], 1
mov dl, 1
mov eax, dword [0x41ef24]
call fcn.006515a0
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x38], ebx
mov eax, ebx
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x38]
call fcn.006273fc
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.006265c4
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0055e620
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_DeleteFileW
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5d7922
mov eax, dword [ebp - 0x14]
call fcn.004028c0
jmp case.default.0x5d7655
mov dl, 1
mov eax, dword [0x41ef24]
call fcn.006515a0
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x38], ebx
xor eax, eax
push ebp
push 0x5d7988
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x46], 1
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 4]
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
call fcn.0055e620
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp case.default.0x5d7655
cmp byte [ebp - 5], 0
je 0x5d7a39
mov eax, dword [ebp - 0x1c]
mov al, byte [eax + 0x46]
cmp al, 1
jne 0x5d79de
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov dword [edx + 0x30], eax
jmp 0x5d7a50
cmp al, 2
jne 0x5d7a50
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov dword [edx + 0x30], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test byte [eax + 8], 2
je 0x5d7a50
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
call fcn.004028c0
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [eax + 0x3c], edx
jmp 0x5d7a50
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x5d7a50
call fcn.004028c0
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [eax + 0x38], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d7a6d
lea eax, [ebp - 0x18]
call fcn.00403880
ret