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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x661560
mov eax, dword fs:[0]
push eax
sub esp, 0x6e4
mov eax, dword [0x719dd4]
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.0045b1a0
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.004649d0
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.00459ca0
mov ecx, eax
lea eax, [ecx + 4]
mov ecx, dword [ecx]
push eax
call fcn.0045ec40
mov esi, eax
mov cl, byte [esi]
shr cl, 4
movzx ecx, cl
dec ecx
cmp ecx, 5
ja case.default.0x45baa9
jmp dword [ecx*4 + 0x45c08c]
lea eax, [ebp - 0x6e4]
mov ecx, esi
push eax
call fcn.0045ea80
mov ecx, esi
mov edi, dword [eax + 4]
lea eax, [ebp - 0x6f0]
push eax
call fcn.0045ea80
push edi
push dword [eax]
call fcn.00456a60
add esp, 8
mov ecx, eax
test dl, dl
jne 0x45c000
jmp 0x45bb03
cvttsd2si ecx, qword [esi + 8]
jmp 0x45bb03
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x220], eax
jmp 0x45bb03
xor ecx, ecx
cmp byte [esi + 1], cl
setne cl
test ecx, ecx
jne 0x45bf97
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.00459ca0
mov ecx, eax
mov dword [ebp - 0x224], 0x66c048
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x220], 3
lea eax, [ecx + 4]
mov ecx, dword [ecx]
push eax
call fcn.0045ec40
lea ecx, [ebp - 0x224]
push ecx
mov ecx, eax
call fcn.0045ec40
push 1
lea ecx, [ebp - 0x6dc]
mov esi, eax
call fcn.00457250
lea ecx, [ebp - 0x6e5]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x2bc]
mov ecx, esi
push eax
call fcn.004520b0
lea ecx, [ebp - 0x5a8]
call fcn.00458ab0
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 0x45bbe2
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.00449b20
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0046a880
add esp, 8
mov edx, dword [ebp - 0x220]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x45bc50
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45bc46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c041
push edx
push ecx
call fcn.0062ffc3
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.00632c20
lea eax, [ebp - 0x2a4]
push eax
call fcn.0046c1a0
add esp, 0x10
push eax
lea eax, [ebp - 0x2d4]
mov byte [ebp - 4], 0xa
push eax
call fcn.0046a880
add esp, 8
mov edx, dword [ebp - 0x290]
mov byte [ebp - 4], 0xc
cmp edx, 0x10
jb 0x45bcdf
mov ecx, dword [ebp - 0x2a4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45bcd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c046
push edx
push ecx
call fcn.0062ffc3
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.0063f236
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 0x45bebe
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 0x45bd80
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0045eb30
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.0046ab70
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xe
jb 0x45bdc8
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0044cbc0
add esp, 8
lea ecx, [ebp - 0x304]
call fcn.004490c0
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x11
call fcn.00458eb0
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x2ec]
push eax
call fcn.0046a880
mov ecx, eax
add esp, 8
cmp dword [ecx + 0x14], 8
jb 0x45be12
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.0063f466
add esp, 0xc
lea ecx, [ebp - 0x2ec]
mov esi, eax
call fcn.00458eb0
test esi, esi
je 0x45be68
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45beaf
push 4
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x24c]
call fcn.004490c0
lea ecx, [ebp - 0x2d4]
call fcn.00458eb0
lea ecx, [ebp - 0x264]
call fcn.00458eb0
lea ecx, [ebp - 0x2bc]
call fcn.004490c0
lea ecx, [ebp - 0x274]
call fcn.00459830
lea ecx, [ebp - 0x28c]
call fcn.004490c0
jmp 0x45bfe4
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0xc
call fcn.004490c0
lea ecx, [ebp - 0x59c]
call fcn.00448c70
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 0x45bef3
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24c]
call fcn.0045eb30
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x2ec]
push eax
call fcn.0046ab70
add esp, 8
push eax
lea ecx, [ebp - 0x59c]
mov byte [ebp - 4], 0x14
call fcn.0044b5b0
lea ecx, [ebp - 0x2ec]
call fcn.004490c0
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x12
call fcn.00458eb0
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x59c]
call fcn.00449c60
lea ecx, [ebp - 0x59c]
call fcn.00449320
lea ecx, [ebp - 0x2d4]
call fcn.00458eb0
lea ecx, [ebp - 0x264]
call fcn.00458eb0
lea ecx, [ebp - 0x2bc]
call fcn.004490c0
lea ecx, [ebp - 0x274]
call fcn.00459830
mov edx, dword [ebp - 0x278]
cmp edx, 0x10
jb 0x45bfe4
mov ecx, dword [ebp - 0x28c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45bfda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c04b
jmp 0x45bfda
push edx
push ecx
call fcn.0062ffc3
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.0063024e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x304]
push eax
push edx
lea eax, [ebp - 0x224]
push eax
call fcn.00463c60
add esp, 8
mov ecx, eax
call fcn.00463f20
push 1
push eax
lea ecx, [ebp - 0x334]
mov byte [ebp - 4], 3
call fcn.00457d30
push 0x70e11c
lea eax, [ebp - 0x334]
push eax
call fcn.00632003
call fcn.00637f85
call fcn.00637f85
call fcn.00637f85
push str.Not_an_integer
lea ecx, [ebp - 0x2ec]
call fcn.00457980
push 1
lea eax, [ebp - 0x2ec]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x364]
call fcn.00457d30
push 0x70e11c
lea eax, [ebp - 0x364]
push eax
call fcn.00632003
nop dword [eax]
sti
mov edx, -1158873019
inc ebp
add ch, ch
mov edx, 0xbae60045
inc ebp
add byte [eax - 0x4fffba46], dh
mov edx, 0xcccc0045
int3