Function at 0x1002aa00
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d137
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x100c400c]
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 edi, ecx
mov eax, dword [edi + 0x6c]
lea ebx, [edi + 0x60]
test eax, eax
je 0x1002aa56
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebx + 0xc], 0
lea eax, [ebx + 0x10]
mov ecx, ebx
push eax
call fcn.100201e0
mov esi, dword [edi + 0x58]
test esi, esi
je 0x1002acac
lea ecx, [edi + 0x3c]
mov dword [ebp - 0x74], ecx
lea edi, [esi - 1]
mov edx, ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.1002af30
add esp, 4
push str..zip
lea edx, [ebp - 0x58]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.1000ede0
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002ac1b
test al, 0x10
jne 0x1002ac1b
mov edx, dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
push esi
call fcn.1002af30
add esp, 4
push str..zip
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.1000ede0
add esp, 4
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002ab1b
test al, 0x10
jne 0x1002ab1b
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
test eax, eax
jne 0x1002acef
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
lea ecx, [ebp - 0x28]
add esp, 4
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call esi
add esp, 8
test eax, eax
je 0x1002ab99
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call esi
add esp, 8
test eax, eax
jne 0x1002ad2c
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1002abd1
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002abc7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002aca6
push edx
push ecx
call fcn.100696b3
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x1002ac1b
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ac11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002aca6
push edx
push ecx
call fcn.100696b3
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x1002ac4f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ac45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002aca6
push edx
push ecx
call fcn.100696b3
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x44]
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
cmp edx, 0x10
jb 0x1002ac98
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ac8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002aca6
push edx
push ecx
call fcn.100696b3
add esp, 8
mov esi, edi
test esi, esi
je 0x1002acac
mov ecx, dword [ebp - 0x74]
jmp 0x1002aa67
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [ebx + 0x20], 0
jne 0x1002acc6
sub esp, 0x18
mov ecx, esp
push str.Failed_re_opening_file___was_not_opened_before
call fcn.10008030
jmp 0x1002ad90
push 1
lea eax, [ebx + 0x10]
mov ecx, ebx
push eax
call fcn.10020000
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.10069076
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xb0]
call fcn.1001d950
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov edx, str.rotating_file_sink:_failed_removing
push eax
call fcn.10023c20
add esp, 4
lea ecx, [ebp - 0xd4]
call fcn.1001d4e0
push 0x100c1b80
mov eax, ecx
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xb0]
call fcn.1001d950
mov esi, eax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xec]
call fcn.1001d950
push eax
mov edx, str.rotating_file_sink:_failed_renaming
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x104]
call fcn.10023c20
add esp, 4
push str._to
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc8]
call fcn.10009ae0
sub esp, 0x14
mov byte [ebp - 4], 8
mov ecx, esp
push esi
push eax
push ecx
call fcn.1000ad50
add esp, 0xc
lea ecx, [ebp - 0x98]
call fcn.1001d4e0
push 0x100c1b80
mov eax, ecx
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3