Function at 0x436a60
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x449ad4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x98]
xor ebp, ebp
push edi
mov dword [esp + 0x94], ebp
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x436b51
push 0x64
push str.::Open_File_...
lea ecx, [esp + 0x50]
mov dword [0x45c6b0], ebp
call fcn.00407ee0
mov byte [esp + 0x90], 1
mov bl, 2
lea eax, [esp + 0x12]
lea ecx, [esp + 0x28]
push eax
push 0x45a4f8
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea ecx, [esp + 0x13]
mov byte [esp + 0x90], bl
push ecx
push edi
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea edx, [esp + 0x28]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00407e00
add esp, 8
lea ecx, [esp + 0x18]
mov esi, eax
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x94], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
test esi, esi
jne 0x436b38
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x48]
call fcn.00407e40
inc ebp
cmp ebp, 0x64
jl 0x436abe
lea ecx, [esp + 0x48]
mov byte [esp + 0x90], 0
call fcn.00408fc0
test esi, esi
jne 0x436c51
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push str.Cant_open_wb
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x18]
push eax
push str.Cant_open_wb
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_]
lea edx, [esp + 0x18]
push edi
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x9c], 3
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
add esp, 0xc
mov eax, dword [eax + 4]
mov bl, 4
test eax, eax
mov byte [esp + 0x90], bl
jne 0x436bb3
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]
lea ecx, [esp + 0x13]
push ecx
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea edx, [esp + 0x28]
mov byte [esp + 0x90], 5
push edx
call fcn.00406940
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], bl
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
push eax
push ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 0x98], 0xffffffff
call fcn.00428430
mov edx, dword [esp + 0xa0]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor al, al
jmp 0x436d1d
mov ecx, dword [esp + 0xa0]
test ecx, ecx
je 0x436c75
mov eax, dword [esp + 0xa4]
sub eax, ecx
je 0x436c75
push esi
push eax
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0xa4]
add esp, 4
test eax, eax
je 0x436d12
mov ecx, dword [esp + 0xa4]
sub ecx, eax
je 0x436d12
push edi
lea ecx, [esp + 0x4c]
call fcn.00409cf0
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
or edx, eax
jne 0x436d0b
mov esi, dword [esp + 0xac]
cmp esi, 0xa
jle 0x436ccf
mov eax, dword [esp + 0xa0]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor al, al
jmp 0x436d1d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
lea edx, [esp + 0x9c]
push esi
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00427550
push edi
call fcn.00436a60
mov bl, al
mov eax, dword [esp + 0xb8]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 0x1c
mov al, bl
jmp 0x436d1d
mov eax, dword [esp + 0xa0]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x84
ret