Function at 0x10099f80
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd734
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x100e87b8]
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
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebp - 0x44], 1
je 0x10099fcb
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 7
jne 0x10099fe9
lea ecx, [esi + 0x10]
call fcn.1007ee00
push eax
call dword [sym.imp.MSVCR80.dll__wremove]
add esp, 4
neg eax
sbb eax, eax
add eax, 1
jmp 0x1009a4c4
push 0x100cefac
lea ecx, [esi + 0x10]
call fcn.1007ee00
push eax
call dword [sym.imp.MSVCR80.dll__wfopen]
add esp, 8
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x1009a021
push 0x169
push str..DBackupIniFile.cpp
push eax
call fcn.10001230
add esp, 0xc
xor eax, eax
jmp 0x1009a4c4
push eax
push 1
push 2
push 0x100cef28
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR80.dll_fwrite]
push 0xffffffffffffffff
push 0
push 0x100cefa8
push 0
call fcn.100365f0
add esp, 0x20
test eax, eax
mov ebx, eax
setne byte [ebp - 0x8c]
mov dword [ebp - 0x88], ebx
push 0xffffffffffffffff
push 0
push 0x100cefa4
push 0
mov byte [ebp - 4], 1
call fcn.100365f0
add esp, 0x10
test eax, eax
setne byte [ebp - 0x74]
mov dword [ebp - 0x70], eax
push 0xffffffffffffffff
push 0
push 0x100cef7c
push 0
mov byte [ebp - 4], 2
call fcn.100365f0
add esp, 0x10
test eax, eax
setne byte [ebp - 0x40]
mov dword [ebp - 0x3c], eax
push 0xffffffffffffffff
push 0
push 0x100cef64
push 0
mov byte [ebp - 4], 3
call fcn.100365f0
add esp, 0x10
test eax, eax
setne byte [ebp - 0x64]
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
push 0
push str.GUID
push 0
mov byte [ebp - 4], 4
call fcn.100365f0
add esp, 0x10
test eax, eax
setne byte [ebp - 0x54]
mov dword [ebp - 0x50], eax
push 0xffffffffffffffff
push 0
push str.Time
push 0
mov byte [ebp - 4], 5
call fcn.100365f0
add esp, 0x10
test eax, eax
setne byte [ebp - 0x6c]
mov dword [ebp - 0x68], eax
push 0xffffffffffffffff
push 0
push str.Size
push 0
mov byte [ebp - 4], 6
call fcn.100365f0
add esp, 0x10
test eax, eax
setne byte [ebp - 0x5c]
mov dword [ebp - 0x58], eax
push 0xffffffffffffffff
push 0
push str.DriveLetter
push 0
mov byte [ebp - 4], 7
call fcn.100365f0
add esp, 0x10
test eax, eax
setne byte [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 8
xor edi, edi
mov ecx, esi
call fcn.100991e0
cmp edi, eax
jae 0x1009a420
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call dword [0x100c01f4]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1009a17b
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 7
cmp edi, eax
jb 0x1009a181
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 4]
mov ebx, edi
shl ebx, 7
add edx, ebx
push edx
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, dword [ebp - 0x70]
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.10099eb0
add esp, 8
test eax, eax
je 0x1009a1d1
push 0x100e23e8
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x84], 0xfffffffc
call sub.MSVCR80.dll__CxxThrowException
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x30]
call dword [0x100c01f4]
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1009a1fe
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 7
cmp edi, eax
jb 0x1009a204
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
lea ecx, [ebx + eax + 0x1c]
push ecx
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.10099eb0
add esp, 8
test eax, eax
je 0x1009a23e
push 0x100e23e8
lea ecx, [ebp - 0x7c]
push ecx
mov dword [ebp - 0x7c], 0xfffffffc
call sub.MSVCR80.dll__CxxThrowException
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x30]
call dword [0x100c01f4]
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1009a26b
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 7
cmp edi, eax
jb 0x1009a271
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
lea edx, [ebx + ecx + 0x38]
push edx
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.10099eb0
add esp, 8
test eax, eax
je 0x1009a2ab
push 0x100e23e8
lea edx, [ebp - 0x80]
push edx
mov dword [ebp - 0x80], 0xfffffffc
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call dword [0x100c01f4]
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1009a2d8
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 7
cmp edi, eax
jb 0x1009a2de
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 4]
movzx eax, word [ebx + edx + 0x70]
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_]
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
push ebx
push ecx
call fcn.10099eb0
add esp, 8
test eax, eax
je 0x1009a31f
push 0x100e23e8
lea edx, [ebp - 0x94]
push edx
mov dword [ebp - 0x94], 0xfffffffc
call sub.MSVCR80.dll__CxxThrowException
lea ecx, [ebp - 0x38]
call fcn.1007ecd0
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xa
call dword [0x100c01f4]
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push edi
mov ecx, esi
call fcn.10099200
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
push edx
push eax
lea ecx, [ebp - 0x38]
push str._I64d
push ecx
call fcn.10080e60
add esp, 0x10
lea ecx, [ebp - 0x38]
call fcn.1007ee00
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea edx, [ebp - 0x30]
push ebx
push edx
call fcn.10099eb0
add esp, 8
test eax, eax
je 0x1009a3a4
push 0x100e23e8
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], 0xfffffffc
call sub.MSVCR80.dll__CxxThrowException
mov ecx, dword [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x30]
call dword [0x100c01f4]
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push edi
mov ecx, esi
call fcn.10099200
add eax, 0x54
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.10099eb0
add esp, 8
test eax, eax
je 0x1009a3f9
push 0x100e23e8
lea ecx, [ebp - 0x78]
push ecx
mov dword [ebp - 0x78], 0xfffffffc
call sub.MSVCR80.dll__CxxThrowException
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.1007ece0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ebx, dword [ebp - 0x88]
add edi, 1
jmp 0x1009a142
cmp byte [ebp - 0x4c], 0
je 0x1009a432
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp byte [ebp - 0x5c], 0
je 0x1009a444
mov eax, dword [ebp - 0x58]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp byte [ebp - 0x6c], 0
je 0x1009a456
mov ecx, dword [ebp - 0x68]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp byte [ebp - 0x54], 0
je 0x1009a468
mov edx, dword [ebp - 0x50]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp byte [ebp - 0x64], 0
je 0x1009a47a
mov eax, dword [ebp - 0x60]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp byte [ebp - 0x40], 0
je 0x1009a48c
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp byte [ebp - 0x74], 0
je 0x1009a49e
mov edx, dword [ebp - 0x70]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp byte [ebp - 0x8c], 0
je 0x1009a4b0
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1009a4c1
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x44]
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.100af9b2
mov esp, ebp
pop ebp
ret