Function at 0x412d20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddd46
mov eax, dword fs:[0]
push eax
sub esp, 0xc98
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 0xffffffff
lea eax, [ebp - 0xca0]
mov ecx, 0x7fffffff
cmovne ecx, dword [ebp + 8]
push eax
mov dword [ebp - 0xca4], ecx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov dword [ebp - 0xca0], eax
lea eax, [ebp - 0xca0]
push eax
mov dword [ebp - 0xc9c], edx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
push 0x208
mov edi, eax
lea eax, [ebp - 0xa38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x38
lea eax, [esi + 0x18]
cmp dword [esi + 0x2c], 8
jb 0x412de6
mov eax, dword [esi + 0x18]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0x104
lea ecx, [ebp - 0x628]
push ecx
push 0x104
lea ecx, [ebp - 0x830]
push ecx
push 0x104
lea ecx, [ebp - 0xa38]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x420]
push eax
push dword [edi + 0xc]
mov eax, dword [edi + 0x10]
inc eax
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0xa38]
push eax
push str._s_s_s__d__02d__02d_s
lea eax, [ebp - 0x218]
push 0x103
push eax
call fcn.004121c0
lea edx, [ebp - 0x218]
add esp, 0x58
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x412e80
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
lea ecx, [esi + 0x18]
push edx
push eax
call fcn.004033b0
lea eax, [ebp - 0x218]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_wcsrchr
xor ecx, ecx
add esp, 8
mov word [eax], cx
xor eax, eax
mov dword [ebp - 0xa58], ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0xa54], 7
lea edx, [ecx + 2]
mov word [ebp - 0xa68], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412ed7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa68]
call fcn.004033b0
push 2
push 0x4f189c
lea ecx, [ebp - 0xa68]
mov dword [ebp - 4], 0
call fcn.00403230
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
jmp 0x412f20
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412f20
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa68]
call fcn.00403230
cmp dword [ebp - 0xa54], 8
lea ecx, [ebp - 0xc98]
lea eax, [ebp - 0xa68]
cmovae eax, dword [ebp - 0xa68]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfindfirst64i32]
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x4130ca
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfindnext64i32]
mov edi, edi
test byte [ebp - 0xc98], 0x10
jne 0x4130aa
imul eax, dword [ebp - 0xca4], 0x15180
mov ecx, dword [ebp - 0xca0]
cdq
sub ecx, eax
mov eax, dword [ebp - 0xc9c]
sbb eax, edx
cmp dword [ebp - 0xc8c], eax
jg 0x4130aa
jl 0x412fc2
cmp dword [ebp - 0xc90], ecx
jae 0x4130aa
xor eax, eax
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0xa3c], 7
lea edx, [eax + 2]
jmp 0x412ff0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412ff0
sub eax, edx
lea ecx, [ebp - 0xa50]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004033b0
push 1
push 0x4f0efc
lea ecx, [ebp - 0xa50]
mov byte [ebp - 4], 1
call fcn.00403230
lea ecx, [ebp - 0xc74]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413031
sub ecx, edx
lea eax, [ebp - 0xc74]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa50]
call fcn.00403230
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push eax
call ebx
mov edx, dword [ebp - 0xa3c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4130aa
mov ecx, dword [ebp - 0xa50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4130a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130fc
push edx
push ecx
call fcn.004bee2d
add esp, 8
lea eax, [ebp - 0xc98]
push eax
push esi
call edi
add esp, 8
cmp eax, 0xffffffff
jne 0x412f80
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findclose]
add esp, 4
mov edx, dword [ebp - 0xa54]
cmp edx, 8
jb 0x41310c
mov ecx, dword [ebp - 0xa68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413102
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x413102
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret 4