Function at 0x4307c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x458004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x430c13
mov eax, dword [edi + 0x208]
test eax, eax
je 0x430c13
mov ecx, dword [edi + 0x254]
mov esi, dword [edi + 4]
push eax
mov dword [ebp - 0x34], ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ebx, dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 4
push 0x2f
push esi
call ebx
add esp, 8
test eax, eax
je 0x43083c
nop dword [eax]
push 0x2f
push esi
call ebx
mov esi, eax
add esp, 8
cmp byte [esi], 0x2f
jne 0x430830
inc esi
push 0x2f
push esi
call ebx
add esp, 8
test eax, eax
jne 0x430820
push 0x5c
push esi
call ebx
add esp, 8
test eax, eax
je 0x430864
push 0x5c
push esi
call ebx
mov esi, eax
add esp, 8
cmp byte [esi], 0x5c
jne 0x430858
inc esi
push 0x5c
push esi
call ebx
add esp, 8
test eax, eax
jne 0x430848
mov ecx, dword [ebp - 0x34]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x430870
sub ecx, edx
mov edx, esi
lea ebx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x430880
sub edx, ebx
mov ebx, esi
lea eax, [ebx + 1]
mov dword [ebp - 0x30], eax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x430891
sub ebx, dword [ebp - 0x30]
lea eax, [ebx + 0xe]
add eax, edx
mov edx, 1
add ecx, eax
mov eax, ecx
mov dword [ebp - 0x30], ecx
cmove eax, edx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x2c], ebx
test ebx, ebx
jne 0x4308e1
push str.____out_of_memory__aborting_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
test byte [edi + 0x258], 2
lea eax, [edi + 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
je 0x4308fd
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__gmtime64_s]
jmp 0x430903
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
add esp, 8
test eax, eax
je 0x430939
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push str.gmtime__:_file_rotation_ended
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov eax, dword [edi + 0x208]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x28]
xor ebx, ebx
nop
mov eax, dword [edi + 0x240]
or eax, dword [edi + 0x244]
jne 0x430a0b
mov eax, dword [ebp - 0x18]
push esi
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
inc eax
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub ecx, eax
push ecx
push dword [ebp - 0x34]
push str._s__02u_02u_02u__02u_02u_02u__s
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00404800
add esp, 0x2c
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
test eax, eax
jne 0x4309b2
mov ecx, dword [ebp - 0x28]
mov eax, ebx
inc ecx
inc ebx
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x430940
mov ebx, dword [ebp - 0x2c]
mov esi, dword [edi + 4]
push ebx
push esi
mov dword [ebp - 0x34], esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 8
test eax, eax
je 0x430a7e
push ebx
push esi
push str.rename___s_____s__:_failed_n
push 0
call fcn.0041b440
push str.rename__
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 0x14
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [edi + 0x208]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.VCRUNTIME140.dll_strrchr]
push 0x2e
push esi
call ebx
add esp, 8
test eax, eax
je 0x430a3b
push 0x2e
push esi
call ebx
mov ebx, eax
add esp, 8
mov edx, ebx
sub edx, esi
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x430a30
sub ebx, ecx
jmp 0x430a4b
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x430a40
sub edx, ecx
xor ebx, ebx
mov ecx, dword [edi + 0x250]
lea eax, [ecx + 1]
mov dword [edi + 0x250], eax
lea eax, [edx + esi]
push eax
push ebx
mov ebx, dword [ebp - 0x2c]
push ecx
push esi
push edx
push dword [ebp - 0x34]
push str._s__.s__05u_.s
push dword [ebp - 0x30]
push ebx
call fcn.00404800
add esp, 0x24
jmp 0x4309b5
cmp dword [edi + 0x238], 0
mov dword [edi + 0x248], 0
mov dword [edi + 0x24c], 0
je 0x430aeb
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov edi, dword [edi + 0x238]
add esp, 4
mov ebx, eax
mov eax, edx
mov dword [ebp - 0x30], eax
push 0
push edi
push eax
push ebx
call fcn.00444580
mov esi, dword [ebp - 0x3c]
mov ecx, dword [esi + 0x23c]
xor esi, esi
sub ecx, eax
sbb esi, edx
add ecx, edi
mov edi, dword [ebp - 0x3c]
adc esi, 0
add ecx, ebx
mov ebx, dword [ebp - 0x2c]
adc esi, dword [ebp - 0x30]
mov dword [edi + 0x22c], esi
mov esi, dword [ebp - 0x34]
mov dword [edi + 0x228], ecx
push ebx
push str.rotated:__s_n
push 1
call fcn.0041b440
add esp, 0xc
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [ebp - 0x38], 0
je 0x430b2c
mov dword [edi + 0x208], 0
mov eax, dword [edi + 0x208]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0042ff20
mov ebx, eax
mov dword [ebp - 0x38], ebx
test ebx, ebx
jne 0x430b76
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push esi
push str.rotate:__s:_failed:__s_n
push ebx
call fcn.0041b440
mov eax, dword [edi + 0x208]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
mov ebx, dword [edi + 0x208]
test ebx, ebx
je 0x430bcc
test byte [edi + 0x220], 1
jne 0x430b99
mov eax, dword [edi + 0x20c]
push ebx
push edi
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x60
lea eax, [edi + 0x260]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x210], 0x100
je 0x430bcc
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x38]
push 0
mov dword [edi + 0x208], eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [edi + 0x230], eax
mov dword [edi + 0x234], edx
push esi
push str.rotate:_started_new_file:__s_n
push 1
call fcn.0041b440
mov eax, dword [edi + 0x208]
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443732
mov esp, ebp
pop ebp
ret