Function at 0x51086e
Capabilities:
Delete file

Disassembly:
mov eax, 0x6a8b09
call fcn.00640244
sub esp, 0x74
cmp byte [0x7ad2ae], 0
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
je 0x510892
xor eax, eax
inc eax
jmp 0x510b58
push ebx
mov bl, 1
push esi
mov byte [ebp - 0xd], bl
call fcn.00478821
and dword [ebp - 4], 0
cmp byte [ebp + 8], 0
jne 0x5108c9
cmp byte [ebp + 0xc], 0
jne 0x5108c9
mov eax, dword [0x7b043c]
cmp eax, dword [edi + 0x20]
jg 0x5108c9
jl 0x5108c4
mov eax, dword [0x7b0438]
cmp eax, dword [edi + 0x1c]
jae 0x5108c9
push 2
pop eax
jmp 0x51090b
push str.resume.dat.temp
lea eax, [ebp - 0x50]
push eax
call fcn.0047354f
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x5108e3
mov eax, dword [eax]
push 0x80
push 7
push eax
call fcn.00461598
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x50]
xor eax, eax
push eax
push 1
mov byte [ebp - 4], al
call fcn.004281f2
cmp dword [ebp - 0x14], 0xffffffff
jne 0x510912
xor eax, eax
mov esi, eax
jmp 0x510b44
mov eax, dword [0x7b1888]
and dword [ebp + 0xc], 0
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x5109c3
push 0x14
call fcn.0063ffa4
pop ecx
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x510946
mov ecx, eax
call fcn.00429ae5
mov edi, eax
jmp 0x510948
xor edi, edi
push dword [ebp + 8]
mov ecx, dword [esi + 0x24]
push edi
mov byte [ebp - 4], 0
call fcn.004b42e7
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.0045ee1d
cmp dword [ebp - 0x3c], 0x10
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 5
jae 0x510973
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.00461a64
xor esi, esi
inc esi
mov dword [ebp + 0xc], esi
test edi, edi
je 0x51099a
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.0040f52f
lea ecx, [ebp - 0x18]
call fcn.0058d49a
mov esi, dword [ebp - 0x18]
cmp esi, dword [0x7b1888]
jne 0x510928
mov edi, dword [ebp - 0x1c]
push 0x14
call fcn.0063ffa4
pop ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x5109e1
mov ecx, eax
call fcn.00429ae5
mov esi, eax
jmp 0x5109e3
xor esi, esi
push esi
mov byte [ebp - 4], 0
call fcn.00548f08
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.0045ee1d
cmp dword [ebp - 0x54], 0x10
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 7
jae 0x510a08
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.00461a64
test esi, esi
je 0x510a29
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.00461528
push str.resume.dat.temp
lea eax, [ebp - 0x50]
push eax
call fcn.0047354f
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 8
jb 0x510a4c
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00463066
push 0
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
mov esi, eax
call fcn.004281f2
test esi, esi
je 0x510b38
lea ecx, [ebp - 0x38]
call fcn.00429ae5
push str.resume.dat
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0xa
push eax
call fcn.0047354f
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xb
jb 0x510a98
mov eax, dword [eax]
lea ecx, [ebp - 0x38]
push ecx
push 0x45da0c
push dword [ebp - 0x20]
push esi
push eax
call fcn.0046e82b
xor ebx, ebx
mov byte [ebp + 0xf], al
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xa
call fcn.004281f2
push 1
push esi
call fcn.004600c9
push str.resume.dat.temp
lea eax, [ebp - 0x80]
push eax
call fcn.0047354f
cmp dword [eax + 0x14], 8
jb 0x510add
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.004281f2
mov ecx, dword [0x7b0438]
mov eax, dword [0x7b043c]
add ecx, 0x258
mov dword [edi + 0x1c], ecx
adc eax, ebx
mov byte [ebp - 0xd], bl
mov dword [edi + 0x20], eax
call fcn.00478862
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], 0x6cc3c8
call fcn.0045dfda
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x38], 0x6c1024
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.0040f52f
mov dword [ebp - 4], 0xd
test bl, bl
je 0x510b54
call fcn.00478862
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