Function at 0x415f20
Capabilities:
Delete file

Disassembly:
mov eax, 0x1040
call fcn.00554690
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x103c], eax
mov eax, dword [esp + 0x104c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1054]
push 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call sub.MSVCR110.dll__time64
push edx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00413640
add esp, 0x10
cmp dword [0x5cac8c], 0x3e8
jl 0x415fb1
push dword [0x5cac88]
call sub.MSVCR110.dll_fclose
cmp dword [0x5c25a4], 0x10
mov eax, 0x5c2590
cmovae eax, dword [0x5c2590]
push eax
call sub.MSVCR110.dll_remove
add esp, 8
call fcn.004162d0
push 0x1002
lea eax, [esp + 0x4c]
push 0
push eax
call sub.MSVCR110.dll_memset
lea eax, [esp + 0x1078]
push eax
push dword [esp + 0x1078]
lea eax, [esp + 0x5c]
push 0x1001
push eax
call sub.MSVCR110.dll__vsnprintf
add esp, 0x1c
lea eax, [esp + 0x30]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00407e00
push 1
push 0x55a7ec
lea ecx, [esp + 0x20]
call fcn.00407f40
cmp byte [esp + 0x48], 0
jne 0x416010
xor ecx, ecx
jmp 0x416020
lea ecx, [esp + 0x48]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416017
sub ecx, edx
push ecx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
call fcn.00407f40
mov esi, dword [esp + 0x1058]
test esi, esi
jne 0x4160a0
mov ebp, dword [0x5cac9c]
mov ebx, dword [0x5cac98]
mov ecx, ebp
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x64
jne 0x416091
push dword [esp + 0x14]
lea eax, [ebx + 0x18]
push ebx
push ebp
push eax
call fcn.004020b0
push dword [esp + 0x24]
lea eax, [esp + 0x27]
push eax
mov eax, dword [0x5cac9c]
push eax
add eax, 0xffffffe8
push eax
call fcn.00401a50
add esp, 0x20
sub dword [0x5cac9c], 0x18
lea eax, [esp + 0x18]
push eax
mov ecx, 0x5cac98
call fcn.004149e0
cmp dword [0x5cac88], 0
je 0x4161a1
cmp dword [0x5cac90], esi
jl 0x4161a1
mov ebp, dword [0x5c25bc]
mov esi, dword [0x5c25b8]
mov ebx, 0x5c25a8
cmp ebp, 0x10
mov ecx, ebx
cmovae ecx, dword [0x5c25a8]
mov eax, 1
cmp esi, eax
cmovb eax, esi
push eax
push 0x55aec0
push ecx
call fcn.00409d70
add esp, 0xc
test eax, eax
jne 0x416102
cmp esi, 1
jb 0x416102
cmp esi, 1
setne al
test eax, eax
je 0x416138
cmp ebp, 0x10
cmovae ebx, dword [0x5c25a8]
mov eax, 2
cmp esi, eax
cmovb eax, esi
push eax
push 0x55b40c
push ebx
call fcn.00409d70
add esp, 0xc
test eax, eax
jne 0x4161a1
cmp esi, 2
jb 0x4161a1
cmp esi, 2
setne al
test eax, eax
jne 0x4161a1
push 0x5caca4
call fcn.0055334b
add esp, 4
test eax, eax
je 0x416152
push eax
call fcn.005533cb
add esp, 4
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
push dword [esp + 0x1068]
push dword [esp + 0x1c]
push str.__s____d__n_t_t_t_s_n
push dword [0x5cac88]
call sub.MSVCR110.dll_fprintf
push dword [0x5cac88]
call sub.MSVCR110.dll_fflush
push 0x5caca4
call fcn.005533aa
add esp, 0x1c
test eax, eax
je 0x4161a1
push eax
call fcn.005533cb
add esp, 4
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.004025b0
cmp dword [esp + 0x44], 0x10
jb 0x4161c0
push dword [esp + 0x30]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x2c], 0x10
mov byte [esp + 0x30], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0xf
jb 0x4161e8
push dword [esp + 0x18]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x104c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055423a
add esp, 0x1040
ret