Function at 0x50e216
Capabilities:
Delete file

Disassembly:
mov eax, 0x6b7513
call fcn.00651da4
sub esp, 0x74
cmp byte [0x7c2896], 0
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
je 0x50e23a
xor eax, eax
inc eax
jmp 0x50e500
push ebx
mov bl, 1
push esi
mov byte [ebp - 0xd], bl
call fcn.00475363
and dword [ebp - 4], 0
cmp byte [ebp + 8], 0
jne 0x50e271
cmp byte [ebp + 0xc], 0
jne 0x50e271
mov eax, dword [0x7c5a14]
cmp eax, dword [edi + 0x20]
jg 0x50e271
jl 0x50e26c
mov eax, dword [0x7c5a10]
cmp eax, dword [edi + 0x1c]
jae 0x50e271
push 2
pop eax
jmp 0x50e2b3
push str.resume.dat.temp
lea eax, [ebp - 0x50]
push eax
call fcn.0047014f
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x50e28b
mov eax, dword [eax]
push 0x80
push 7
push eax
call fcn.0045d9b9
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x50]
xor eax, eax
push eax
push 1
mov byte [ebp - 4], al
call fcn.004284eb
cmp dword [ebp - 0x14], 0xffffffff
jne 0x50e2ba
xor eax, eax
mov esi, eax
jmp 0x50e4ec
mov eax, dword [0x7c6e6c]
and dword [ebp + 0xc], 0
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x50e36b
push 0x14
call fcn.00651ae6
pop ecx
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x50e2ee
mov ecx, eax
call fcn.00429d3a
mov edi, eax
jmp 0x50e2f0
xor edi, edi
push dword [ebp + 8]
mov ecx, dword [esi + 0x24]
push edi
mov byte [ebp - 4], 0
call fcn.004b0c6e
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.0045b1f5
cmp dword [ebp - 0x3c], 0x10
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 5
jae 0x50e31b
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp + 0xc]
sub eax, edx
dec eax
push eax
lea eax, [ecx + edx]
push eax
push dword [ebp - 0x14]
call fcn.0045de7d
xor esi, esi
inc esi
mov dword [ebp + 0xc], esi
test edi, edi
je 0x50e342
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax]
xor eax, eax
lea ecx, [ebp - 0x50]
push eax
push esi
mov byte [ebp - 4], al
call fcn.0040facf
lea ecx, [ebp - 0x18]
call fcn.0043c2d7
mov esi, dword [ebp - 0x18]
cmp esi, dword [0x7c6e6c]
jne 0x50e2d0
mov edi, dword [ebp - 0x1c]
push 0x14
call fcn.00651ae6
pop ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x50e389
mov ecx, eax
call fcn.00429d3a
mov esi, eax
jmp 0x50e38b
xor esi, esi
push esi
mov byte [ebp - 4], 0
call fcn.00546cb4
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.0045b1f5
cmp dword [ebp - 0x54], 0x10
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 7
jae 0x50e3b0
lea ecx, [ebp - 0x68]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x58]
sub eax, edx
push eax
lea eax, [ecx + edx]
push eax
push dword [ebp - 0x14]
call fcn.0045de7d
test esi, esi
je 0x50e3d1
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.0045d949
push str.resume.dat.temp
lea eax, [ebp - 0x50]
push eax
call fcn.0047014f
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 8
jb 0x50e3f4
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0045fb4c
push 0
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
mov esi, eax
call fcn.004284eb
test esi, esi
je 0x50e4e0
lea ecx, [ebp - 0x38]
call fcn.00429d3a
push str.resume.dat
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0xa
push eax
call fcn.0047014f
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xb
jb 0x50e440
mov eax, dword [eax]
lea ecx, [ebp - 0x38]
push ecx
push 0x459de4
push dword [ebp - 0x20]
push esi
push eax
call fcn.0046b48c
xor ebx, ebx
mov byte [ebp + 0xf], al
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xa
call fcn.004284eb
push 1
push esi
call fcn.0045c46f
push str.resume.dat.temp
lea eax, [ebp - 0x80]
push eax
call fcn.0047014f
cmp dword [eax + 0x14], 8
jb 0x50e485
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.004284eb
mov ecx, dword [0x7c5a10]
mov eax, dword [0x7c5a14]
add ecx, 0x258
mov dword [edi + 0x1c], ecx
adc eax, ebx
mov byte [ebp - 0xd], bl
mov dword [edi + 0x20], eax
call fcn.004753a4
xor eax, eax
cmp byte [ebp + 0xf], al
setne al
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x38], 0x6d2030
call fcn.0045a3b2
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x38], 0x6d2024
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.0040facf
mov dword [ebp - 4], 0xd
test bl, bl
je 0x50e4fc
call fcn.004753a4
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8