Function at 0x50b771
Capabilities:
Delete file

Disassembly:
mov eax, 0x56f33b
call fcn.0053c1d0
sub esp, 0x1dc
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x50abc9
cmp byte [esi], 0
je 0x50abc9
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0040ab5c
test eax, eax
ja 0x50a923
test byte [ebp + 0x10], 8
jne 0x50a91b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
inc eax
jmp 0x50abcb
push 1
push 0x1b6
push dword [ebp + 0x10]
lea ecx, [ebp - 0xe8]
push esi
call fcn.004074c0
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0xe0]
and dword [ebp - 4], 0
test al, 6
mov ebx, 0x572840
je 0x50ab69
push 1
push 2
lea ecx, [ebp - 0x1e8]
call fcn.00404a20
push 0x57cb14
lea eax, [ebp - 0x1e8]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 1
push 2
lea ecx, [ebp - 0x168]
call fcn.00404a20
mov esi, 0x572a6c
push esi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 2
call fcn.00407320
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 3
jb 0x50a9ca
mov eax, dword [eax + 4]
jmp 0x50a9cd
add eax, 4
push eax
push 0x572a4c
push esi
push 0x572a48
push 0x10000000
push 0x572a40
push dword [ebp - 0x10]
mov eax, 0x572a3c
push eax
push dword [ebp - 0x12]
mov edx, 0x572a38
push eax
push dword [ebp - 0x14]
mov ecx, 0x572a34
push edx
push dword [ebp - 0x16]
push ecx
push dword [ebp - 0x1a]
push ecx
push dword [ebp - 0x1c]
push edx
push 0x717
push eax
push 0x5c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 8], esp
push 0x57ea88
call fcn.00405500
lea eax, [ebp - 0x54]
push eax
call fcn.00407150
add esp, 0x24
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
jb 0x50aa3f
mov eax, dword [eax + 4]
jmp 0x50aa42
add eax, 4
push eax
lea eax, [ebp - 0x168]
push 0x572a0c
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x54]
call fcn.00402c50
push esi
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00402c50
lea eax, [ebp - 0x168]
push eax
call fcn.00407930
pop ecx
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 1
call fcn.004028d0
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x11c], ebx
call fcn.0054dfcb
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.004028d0
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x19c], ebx
call fcn.0054dfcb
jmp 0x50aba5
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [ebp + 8], eax
je 0x50aba2
mov esi, 0x572a6c
jmp 0x50ab7e
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0040b751
pop ecx
pop ecx
push eax
call fcn.00403980
add dword [ebp + 8], 0x1c
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 8]
pop ecx
pop ecx
jne 0x50ab7b
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00407600
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], ebx
call fcn.0054dfcb
mov eax, esi
jmp 0x50abcb
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
jmp 0x50a8d9