Function at 0x45cb10
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660130
mov eax, dword fs:[0]
push eax
sub esp, 0x6e4
mov eax, dword [0x717dac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x28c]
push str.voice
push eax
call fcn.0045c200
cmp dword [ebp - 0x278], 0x10
lea eax, [ebp - 0x28c]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x28c]
sub esp, 0x20
mov dword [ebp - 0x6e4], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x6e0], eax
mov eax, esp
mov byte [ebp - 4], 1
mov dword [eax], vtable.std::_Func_impl_no_alloc_struct_jsoncons::default_json_parsing__bool__enum_jsoncons::json_errc__class_jsoncons::ser_context_const__.0
mov dword [eax + 0x24], eax
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.004655d0
add esp, 0x30
lea eax, [ebp - 0x6e4]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x298]
mov dword [ebp - 0x6e4], str.code
push eax
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x6e0], 4
call fcn.0045ad00
mov ecx, eax
lea eax, [ecx + 4]
mov ecx, dword [ecx]
push eax
call fcn.0045f840
mov esi, eax
mov cl, byte [esi]
shr cl, 4
movzx ecx, cl
dec ecx
cmp ecx, 5
ja case.default.0x45cb09
jmp dword [ecx*4 + 0x45d0ec]
lea eax, [ebp - 0x6e4]
mov ecx, esi
push eax
call fcn.0045f790
mov ecx, esi
mov edi, dword [eax + 4]
lea eax, [ebp - 0x6f0]
push eax
call fcn.0045f790
push edi
push dword [eax]
call fcn.00457b20
add esp, 8
mov ecx, eax
test dl, dl
jne 0x45d060
jmp 0x45cb63
cvttsd2si ecx, qword [esi + 8]
jmp 0x45cb63
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x220], eax
jmp 0x45cb63
xor ecx, ecx
cmp byte [esi + 1], cl
setne cl
test ecx, ecx
jne 0x45cff7
lea eax, [ebp - 0x6e4]
mov dword [ebp - 0x6e4], str.data
push eax
lea eax, [ebp - 0x298]
mov dword [ebp - 0x6e0], 4
push eax
lea ecx, [ebp - 0x274]
call fcn.0045ad00
mov ecx, eax
mov dword [ebp - 0x224], 0x66a0bc
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x220], 3
lea eax, [ecx + 4]
mov ecx, dword [ecx]
push eax
call fcn.0045f840
lea ecx, [ebp - 0x224]
push ecx
mov ecx, eax
call fcn.0045f840
push 1
lea ecx, [ebp - 0x6dc]
mov esi, eax
call fcn.00458310
lea ecx, [ebp - 0x6e5]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x2bc]
mov ecx, esi
push eax
call fcn.00453170
lea ecx, [ebp - 0x5a8]
call fcn.00459b70
cmp dword [ebp - 0x2a8], 0x10
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 6
cmovae eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, eax
mov dword [ebp - 0x224], 0
mov ecx, edx
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45cc42
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.00449a80
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0044b9c0
add esp, 8
mov edx, dword [ebp - 0x220]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x45ccb0
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45cca6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d0a1
push edx
push ecx
call fcn.0062ed83
add esp, 8
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
push 0
push eax
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
call fcn.006319e0
lea eax, [ebp - 0x2a4]
push eax
call fcn.0044ed90
add esp, 0x10
push eax
lea eax, [ebp - 0x2d4]
mov byte [ebp - 4], 0xa
push eax
call fcn.0044b9c0
add esp, 8
mov edx, dword [ebp - 0x290]
mov byte [ebp - 4], 0xc
cmp edx, 0x10
jb 0x45cd3f
mov ecx, dword [ebp - 0x2a4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45cd35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d0a6
push edx
push ecx
call fcn.0062ed83
add esp, 8
cmp dword [ebp - 0x2c0], 8
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x294], 0
cmovae eax, dword [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x290], 0xf
push 0x104
push eax
mov byte [ebp - 0x2a4], 0
call fcn.0063e8cf
add esp, 0xc
lea eax, [ebp - 0x264]
cmp dword [ebp - 0x250], 8
cmovae eax, dword [ebp - 0x264]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45cf1e
xor eax, eax
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45cde0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0044c000
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.0044c3a0
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xe
jb 0x45ce28
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0044da60
add esp, 8
lea ecx, [ebp - 0x304]
call fcn.00449020
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x11
call fcn.0044b780
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x2ec]
push eax
call fcn.0044b9c0
mov ecx, eax
add esp, 8
cmp dword [ecx + 0x14], 8
jb 0x45ce72
mov ecx, dword [ecx]
push dword [ebp - 0x23c]
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
push ecx
cmovae eax, dword [ebp - 0x264]
push eax
call fcn.0063e982
add esp, 0xc
lea ecx, [ebp - 0x2ec]
mov esi, eax
call fcn.0044b780
test esi, esi
je 0x45cec8
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45cf0f
push 4
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x24c]
call fcn.00449020
lea ecx, [ebp - 0x2d4]
call fcn.0044b780
lea ecx, [ebp - 0x264]
call fcn.0044b780
lea ecx, [ebp - 0x2bc]
call fcn.00449020
lea ecx, [ebp - 0x274]
call fcn.0045a890
lea ecx, [ebp - 0x28c]
call fcn.00449020
jmp 0x45d044
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0xc
call fcn.00449020
lea ecx, [ebp - 0x59c]
call fcn.00448bd0
xor eax, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
lea edx, [ecx + 2]
mov word [ebp - 0x24c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45cf53
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24c]
call fcn.0044c000
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x2ec]
push eax
call fcn.0044c3a0
add esp, 8
push eax
lea ecx, [ebp - 0x59c]
mov byte [ebp - 4], 0x14
call fcn.0044b510
lea ecx, [ebp - 0x2ec]
call fcn.00449020
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x12
call fcn.0044b780
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x59c]
call fcn.00449bc0
lea ecx, [ebp - 0x59c]
call fcn.00449280
lea ecx, [ebp - 0x2d4]
call fcn.0044b780
lea ecx, [ebp - 0x264]
call fcn.0044b780
lea ecx, [ebp - 0x2bc]
call fcn.00449020
lea ecx, [ebp - 0x274]
call fcn.0045a890
mov edx, dword [ebp - 0x278]
cmp edx, 0x10
jb 0x45d044
mov ecx, dword [ebp - 0x28c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45d03a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d0ab
jmp 0x45d03a
push edx
push ecx
call fcn.0062ed83
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 - 0x14]
xor ecx, ebp
call fcn.0062f00e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x304]
push eax
push edx
lea eax, [ebp - 0x224]
push eax
call fcn.00464860
add esp, 8
mov ecx, eax
call fcn.00464b20
push 1
push eax
lea ecx, [ebp - 0x334]
mov byte [ebp - 4], 3
call fcn.00458df0
push 0x70c02c
lea eax, [ebp - 0x334]
push eax
call fcn.00630dc3
call fcn.00636d45
call fcn.00636d45
call fcn.00636d45
push str.Not_an_integer
lea ecx, [ebp - 0x2ec]
call fcn.00458a40
push 1
lea eax, [ebp - 0x2ec]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x364]
call fcn.00458df0
push 0x70c02c
lea eax, [ebp - 0x364]
push eax
call fcn.00630dc3
nop dword [eax]
pop ebx
retf