Function at 0x504c70
Capabilities:
Delete file

Disassembly:
mov eax, 0x679a89
call fcn.0062921c
sub esp, 0x74
cmp byte [0x76d5f2], 0
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
je 0x504c94
xor eax, eax
inc eax
jmp 0x504f5a
push ebx
mov bl, 1
push esi
mov byte [ebp - 0xd], bl
call fcn.00472fb7
and dword [ebp - 4], 0
cmp byte [ebp + 8], 0
jne 0x504ccb
cmp byte [ebp + 0xc], 0
jne 0x504ccb
mov eax, dword [0x76d734]
cmp eax, dword [edi + 0x20]
jg 0x504ccb
jl 0x504cc6
mov eax, dword [0x76d730]
cmp eax, dword [edi + 0x1c]
jae 0x504ccb
push 2
pop eax
jmp 0x504d0d
push str.resume.dat.temp
lea eax, [ebp - 0x50]
push eax
call fcn.0046dfa2
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x504ce5
mov eax, dword [eax]
push 0x80
push 7
push eax
call fcn.0045c90d
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x50]
xor eax, eax
push eax
push 1
mov byte [ebp - 4], al
call fcn.0042386b
cmp dword [ebp - 0x14], 0xffffffff
jne 0x504d14
xor eax, eax
mov esi, eax
jmp 0x504f46
mov eax, dword [0x771a94]
and dword [ebp + 0xc], 0
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x504dc5
push 0x14
call fcn.006291e1
pop ecx
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x504d48
mov ecx, eax
call fcn.00425163
mov edi, eax
jmp 0x504d4a
xor edi, edi
push dword [ebp + 8]
mov ecx, dword [esi + 0x24]
push edi
mov byte [ebp - 4], 0
call fcn.004ac87f
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.0045a170
cmp dword [ebp - 0x3c], 0x10
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 5
jae 0x504d75
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.0045cd94
xor esi, esi
inc esi
mov dword [ebp + 0xc], esi
test edi, edi
je 0x504d9c
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.0040abbf
lea ecx, [ebp - 0x18]
call fcn.00497d99
mov esi, dword [ebp - 0x18]
cmp esi, dword [0x771a94]
jne 0x504d2a
mov edi, dword [ebp - 0x1c]
push 0x14
call fcn.006291e1
pop ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x504de3
mov ecx, eax
call fcn.00425163
mov esi, eax
jmp 0x504de5
xor esi, esi
push esi
mov byte [ebp - 4], 0
call fcn.00539054
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.0045a170
cmp dword [ebp - 0x54], 0x10
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 7
jae 0x504e0a
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.0045cd94
test esi, esi
je 0x504e2b
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.0045c89d
push str.resume.dat.temp
lea eax, [ebp - 0x50]
push eax
call fcn.0046dfa2
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 8
jb 0x504e4e
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0045e379
push 0
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
mov esi, eax
call fcn.0042386b
test esi, esi
je 0x504f3a
lea ecx, [ebp - 0x38]
call fcn.00425163
push str.resume.dat
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0xa
push eax
call fcn.0046dfa2
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xb
jb 0x504e9a
mov eax, dword [eax]
lea ecx, [ebp - 0x38]
push ecx
push 0x458d5f
push dword [ebp - 0x20]
push esi
push eax
call fcn.00469288
xor ebx, ebx
mov byte [ebp + 0xf], al
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xa
call fcn.0042386b
push 1
push esi
call fcn.0045b404
push str.resume.dat.temp
lea eax, [ebp - 0x80]
push eax
call fcn.0046dfa2
cmp dword [eax + 0x14], 8
jb 0x504edf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.0042386b
mov ecx, dword [0x76d730]
mov eax, dword [0x76d734]
add ecx, 0x258
mov dword [edi + 0x1c], ecx
adc eax, ebx
mov byte [ebp - 0xd], bl
mov dword [edi + 0x20], eax
call fcn.00472ff8
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], 0x699c10
call fcn.0045932d
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x38], 0x68ea80
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.0040abbf
mov dword [ebp - 4], 0xd
test bl, bl
je 0x504f56
call fcn.00472ff8
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