Function at 0x412830
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5003bb
mov eax, dword fs:[0]
push eax
sub esp, 0xc98
mov eax, dword [0x567e00]
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 0x4128f6
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.00411c80
lea edx, [ebp - 0x218]
add esp, 0x58
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x412990
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
lea ecx, [esi + 0x18]
push edx
push eax
call fcn.00403a70
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 - 0xa68], ecx
mov dword [ebp - 0xa58], ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0xa54], 7
lea edx, [ecx + 2]
mov word [ebp - 0xa68], ax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4129f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa68]
call fcn.00403a70
push 2
push 0x5176bc
lea ecx, [ebp - 0xa68]
mov dword [ebp - 4], 0
call fcn.004038f0
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412a34
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa68]
call fcn.004038f0
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 0x412bde
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfindnext64i32]
test byte [ebp - 0xc98], 0x10
jne 0x412bbe
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 0x412bbe
jl 0x412ad4
cmp dword [ebp - 0xc90], ecx
jae 0x412bbe
xor eax, eax
mov dword [ebp - 0xa50], 0
mov word [ebp - 0xa50], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0xa40], 0
lea edx, [eax + 2]
mov dword [ebp - 0xa3c], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412b04
sub eax, edx
lea ecx, [ebp - 0xa50]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00403a70
push 1
push 0x516d0c
lea ecx, [ebp - 0xa50]
mov byte [ebp - 4], 1
call fcn.004038f0
lea ecx, [ebp - 0xc74]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412b45
sub ecx, edx
lea eax, [ebp - 0xc74]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa50]
call fcn.004038f0
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 0x412bbe
mov ecx, dword [ebp - 0xa50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412bb4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c10
push edx
push ecx
call fcn.004c6f6f
add esp, 8
lea eax, [ebp - 0xc98]
push eax
push esi
call edi
add esp, 8
cmp eax, 0xffffffff
jne 0x412a92
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 0x412c20
mov ecx, dword [ebp - 0xa68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412c16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412c16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
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.004c6f8b
mov esp, ebp
pop ebp
ret 4