Function at 0x504e0a
Capabilities:
Delete file

Disassembly:
mov eax, 0x6b37ed
call fcn.00664608
sub esp, 0x7c
xor eax, eax
push edi
mov edi, ecx
inc eax
cmp byte [0x7b6c7e], 0
mov dword [ebp - 0x20], edi
jne 0x5050e1
push ebx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0xd], al
call fcn.0046bca7
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 8], bl
jne 0x504e66
cmp byte [ebp + 0xc], bl
jne 0x504e66
mov eax, dword [0x7b6dc4]
cmp eax, dword [edi + 0x24]
jg 0x504e66
jl 0x504e5e
mov eax, dword [0x7b6dc0]
cmp eax, dword [edi + 0x20]
jae 0x504e66
push 2
pop ebx
jmp 0x5050cc
push str.resume.dat.temp
lea eax, [ebp - 0x40]
push eax
call fcn.0046665e
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x504e80
mov eax, dword [eax]
push 0x80
push 7
push eax
call fcn.00452e49
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], bl
call fcn.00427afc
cmp dword [ebp - 0x14], 0xffffffff
je 0x5050cc
mov eax, dword [0x7bb224]
push esi
mov dword [ebp + 0xc], ebx
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x504f51
push 0x18
call fcn.00664379
pop ecx
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x504ed9
mov ecx, eax
call fcn.00429772
mov edi, eax
jmp 0x504edb
mov edi, ebx
push dword [ebp + 8]
mov ecx, dword [esi + 0x24]
push edi
mov byte [ebp - 4], bl
call fcn.004a9746
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.004500f2
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
jb 0x504f05
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0xc]
sub eax, edx
dec eax
push eax
lea eax, [ecx + edx]
push eax
push dword [ebp - 0x14]
call fcn.0045336e
xor ecx, ecx
inc ecx
mov dword [ebp + 0xc], ecx
test edi, edi
je 0x504f2c
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00410858
lea ecx, [ebp - 0x18]
call fcn.0043c64d
mov esi, dword [ebp - 0x18]
cmp esi, dword [0x7bb224]
jne 0x504ebb
mov edi, dword [ebp - 0x20]
push 0x18
call fcn.00664379
pop ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x504f6f
mov ecx, eax
call fcn.00429772
mov esi, eax
jmp 0x504f71
mov esi, ebx
push esi
mov byte [ebp - 4], bl
call fcn.0053b001
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.004500f2
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
jb 0x504f95
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x48]
sub eax, edx
push eax
lea eax, [ecx + edx]
push eax
push dword [ebp - 0x14]
call fcn.0045336e
test esi, esi
je 0x504fb6
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.00452ddb
push str.resume.dat.temp
lea eax, [ebp - 0x40]
push eax
call fcn.0046665e
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 8
jb 0x504fd9
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00455163
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
mov esi, eax
call fcn.00427afc
test esi, esi
je 0x5050c3
lea ecx, [ebp - 0x70]
call fcn.00429772
push str.resume.dat
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xa
push eax
call fcn.0046665e
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xb
jb 0x505023
mov eax, dword [eax]
lea ecx, [ebp - 0x70]
push ecx
push 0x44ec3d
push dword [ebp - 0x24]
push esi
push eax
call fcn.00460f9a
lea ecx, [ebp - 0x88]
mov byte [ebp + 0xf], al
mov byte [ebp - 4], 0xa
call fcn.00427afc
push 1
push esi
call fcn.004513a7
push str.resume.dat.temp
lea eax, [ebp - 0x88]
push eax
call fcn.0046665e
cmp dword [eax + 0x14], 8
jb 0x505069
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea ecx, [ebp - 0x88]
call fcn.00427afc
mov ecx, dword [0x7b6dc0]
mov eax, dword [0x7b6dc4]
add ecx, 0x258
mov dword [edi + 0x20], ecx
adc eax, ebx
mov dword [edi + 0x24], eax
mov al, bl
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0xd], al
call fcn.0046bce8
xor ebx, ebx
cmp byte [ebp + 0xf], bl
setne bl
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x70], 0x6ce098
call fcn.0044f20c
mov dword [ebp - 0x70], 0x6ce08c
lea ecx, [ebp - 0x58]
call fcn.00410858
pop esi
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 4], 0xd
je 0x5050de
call fcn.0046bce8
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret 8