Function at 0x43f470
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a2d8f
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.0x43f4b5
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 4]
push eax
call fcn.0043f790
mov edi, eax
mov eax, dword [esi]
cmp eax, 9
ja case.default.0x43f4b5
jmp dword [eax*4 + 0x43f764]
cmp edi, ebx
jne 0x43f59c
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 0x43f4f4
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.0043f940
mov edi, eax
jmp 0x43f4f6
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.0043fd40
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 0x43f593
cmp edi, ebx
jne 0x43f59c
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 0x43f560
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.0043f940
mov edi, eax
jmp 0x43f562
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.0043fd40
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.004419d0
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp case.default.0x43f4b5
cmp edi, ebx
je 0x43f5c1
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.0043fee0
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp case.default.0x43f4b5
cmp edi, ebx
je 0x43f5ee
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.004402b0
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp case.default.0x43f4b5
cmp edi, ebx
je case.default.0x43f4b5
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.00440200
jmp case.default.0x43f4b5
cmp edi, ebx
je case.default.0x43f4b5
mov eax, dword [esi + 8]
mov ecx, edi
push eax
call fcn.0043ffe0
jmp case.default.0x43f4b5
cmp edi, ebx
je 0x43f64b
mov ecx, dword [esi + 0x14]
push ecx
mov ecx, edi
call fcn.00440040
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp case.default.0x43f4b5
cmp edi, ebx
je case.default.0x43f4b5
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 0x43f674
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.0043fbd0
push edi
call fcn.00437568
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.00442010
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
je 0x43f6eb
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.00441c10
cmp dword [esi + 8], 1
jne 0x43f705
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x43f6fe
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.0x43f4b5
mov al, byte [ecx - 1]
test al, al
je 0x43f71f
cmp al, 0xff
je 0x43f71f
dec al
mov byte [ecx - 1], al
jmp case.default.0x43f4b5
add ecx, 0xfffffffe
push ecx
call fcn.00437568
add esp, 4
jmp case.default.0x43f4b5
cmp edi, ebx
je 0x43f73c
mov edx, dword [esi + 0x14]
mov ecx, edi
push edx
call fcn.00440400
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp case.default.0x43f4b5
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