Function at 0x51180b
Capabilities:
Delete file

Disassembly:
mov eax, 0x6aae33
call fcn.006426c4
sub esp, 0x74
cmp byte [0x7b14ce], 0
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
je 0x51182f
xor eax, eax
inc eax
jmp 0x511af5
push ebx
mov bl, 1
push esi
mov byte [ebp - 0xd], bl
call fcn.00479151
and dword [ebp - 4], 0
cmp byte [ebp + 8], 0
jne 0x511866
cmp byte [ebp + 0xc], 0
jne 0x511866
mov eax, dword [0x7b4654]
cmp eax, dword [edi + 0x20]
jg 0x511866
jl 0x511861
mov eax, dword [0x7b4650]
cmp eax, dword [edi + 0x1c]
jae 0x511866
push 2
pop eax
jmp 0x5118a8
push str.resume.dat.temp
lea eax, [ebp - 0x50]
push eax
call fcn.00473f1c
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x511880
mov eax, dword [eax]
push 0x80
push 7
push eax
call fcn.00461def
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x50]
xor eax, eax
push eax
push 1
mov byte [ebp - 4], al
call fcn.004285f6
cmp dword [ebp - 0x14], 0xffffffff
jne 0x5118af
xor eax, eax
mov esi, eax
jmp 0x511ae1
mov eax, dword [0x7b5aa0]
and dword [ebp + 0xc], 0
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x511960
push 0x14
call fcn.00642424
pop ecx
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x5118e3
mov ecx, eax
call fcn.00429ee9
mov edi, eax
jmp 0x5118e5
xor edi, edi
push dword [ebp + 8]
mov ecx, dword [esi + 0x24]
push edi
mov byte [ebp - 4], 0
call fcn.004b4bcb
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.0045f227
cmp dword [ebp - 0x3c], 0x10
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 5
jae 0x511910
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.004622b3
xor esi, esi
inc esi
mov dword [ebp + 0xc], esi
test edi, edi
je 0x511937
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.0040f95f
lea ecx, [ebp - 0x18]
call fcn.005ad870
mov esi, dword [ebp - 0x18]
cmp esi, dword [0x7b5aa0]
jne 0x5118c5
mov edi, dword [ebp - 0x1c]
push 0x14
call fcn.00642424
pop ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x51197e
mov ecx, eax
call fcn.00429ee9
mov esi, eax
jmp 0x511980
xor esi, esi
push esi
mov byte [ebp - 4], 0
call fcn.0054a77f
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.0045f227
cmp dword [ebp - 0x54], 0x10
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 7
jae 0x5119a5
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.004622b3
test esi, esi
je 0x5119c6
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.00461d7f
push str.resume.dat.temp
lea eax, [ebp - 0x50]
push eax
call fcn.00473f1c
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 8
jb 0x5119e9
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.004638b5
push 0
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
mov esi, eax
call fcn.004285f6
test esi, esi
je 0x511ad5
lea ecx, [ebp - 0x38]
call fcn.00429ee9
push str.resume.dat
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0xa
push eax
call fcn.00473f1c
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xb
jb 0x511a35
mov eax, dword [eax]
lea ecx, [ebp - 0x38]
push ecx
push 0x45de16
push dword [ebp - 0x20]
push esi
push eax
call fcn.0046f1a5
xor ebx, ebx
mov byte [ebp + 0xf], al
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xa
call fcn.004285f6
push 1
push esi
call fcn.00460614
push str.resume.dat.temp
lea eax, [ebp - 0x80]
push eax
call fcn.00473f1c
cmp dword [eax + 0x14], 8
jb 0x511a7a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.004285f6
mov ecx, dword [0x7b4650]
mov eax, dword [0x7b4654]
add ecx, 0x258
mov dword [edi + 0x1c], ecx
adc eax, ebx
mov byte [ebp - 0xd], bl
mov dword [edi + 0x20], eax
call fcn.00479192
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], 0x6c40a0
call fcn.0045e3e4
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x38], 0x6c4094
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.0040f95f
mov dword [ebp - 4], 0xd
test bl, bl
je 0x511af1
call fcn.00479192
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