Function at 0x446a00
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b2a0f
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 4]
cmp eax, ebx
je case.default.0x446a45
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 4]
push eax
call fcn.00446d20
mov edi, eax
mov eax, dword [esi]
cmp eax, 9
ja case.default.0x446a45
jmp dword [eax*4 + 0x446cf4]
cmp edi, ebx
jne 0x446b2c
push 0x90
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov dword [esp + 0x40], ebx
je 0x446a84
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
mov ecx, dword [esi + 4]
push edx
push ecx
mov ecx, eax
call fcn.00446ed0
mov edi, eax
jmp 0x446a86
xor edi, edi
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
push ebx
push edx
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x50], 0xffffffff
call fcn.004472d0
mov edx, dword [esi + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
push eax
lea ecx, [esp + 0x24]
jmp 0x446b23
cmp edi, ebx
jne 0x446b2c
push 0x90
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov dword [esp + 0x40], 1
je 0x446af0
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
mov ecx, dword [esi + 4]
push edx
push ecx
mov ecx, eax
call fcn.00446ed0
mov edi, eax
jmp 0x446af2
xor edi, edi
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
push 1
push edx
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x50], 0xffffffff
call fcn.004472d0
mov edx, dword [esi + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [ebp + 8]
call fcn.004495a0
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp case.default.0x446a45
cmp edi, ebx
je 0x446b51
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.00447470
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp case.default.0x446a45
cmp edi, ebx
je 0x446b7e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00447840
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp case.default.0x446a45
cmp edi, ebx
je case.default.0x446a45
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 0x14]
push eax
push ecx
push edx
mov ecx, edi
call fcn.00447790
jmp case.default.0x446a45
cmp edi, ebx
je case.default.0x446a45
mov eax, dword [esi + 8]
mov ecx, edi
push eax
call fcn.00447570
jmp case.default.0x446a45
cmp edi, ebx
je 0x446bdb
mov ecx, dword [esi + 0x14]
push ecx
mov ecx, edi
call fcn.004475d0
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp case.default.0x446a45
cmp edi, ebx
je case.default.0x446a45
mov eax, dword [edi + 0xc]
cmp eax, ebx
mov ebx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
je 0x446c04
mov ebx, eax
mov al, byte [esp + 0x48]
push ebx
mov byte [esp + 0x2c], al
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov ecx, edi
mov dword [esp + 0x40], 2
call fcn.00447160
push edi
call fcn.0043b3d0
mov ecx, dword [esi + 4]
add esp, 4
lea edx, [esp + 0x48]
lea edi, [ebp + 8]
lea eax, [esp + 0x10]
mov dword [esp + 0x48], ecx
push edx
push eax
mov ecx, edi
call fcn.00449be0
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
je 0x446c7b
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.004497e0
cmp dword [esi + 8], 1
jne 0x446c95
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x446c8e
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je case.default.0x446a45
mov al, byte [ecx - 1]
test al, al
je 0x446caf
cmp al, 0xff
je 0x446caf
dec al
mov byte [ecx - 1], al
jmp case.default.0x446a45
add ecx, 0xfffffffe
push ecx
call fcn.0043b3d0
add esp, 4
jmp case.default.0x446a45
cmp edi, ebx
je 0x446ccc
mov edx, dword [esi + 0x14]
mov ecx, edi
push edx
call fcn.00447990
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp case.default.0x446a45
mov dword [ebp + 4], ebx
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4