Function at 0x416f50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x445a2d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push ebp
push esi
lea eax, [esp + 0x9c]
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.0040c300
push 0x5c
lea ecx, [esp + 0x68]
push eax
push ecx
mov dword [esp + 0x118], 1
call fcn.00409b40
push str.WMF.tmp
lea edx, [esp + 0x3c]
push eax
push edx
mov byte [esp + 0x124], 2
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, 0x1c
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x10c], 5
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 + 0xa4]
mov byte [esp + 0x10c], 4
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 edi, dword [esp + 0x114]
lea eax, [esp + 0x90]
push edi
push eax
call fcn.004172c0
mov esi, eax
lea ecx, [esp + 0x30]
push 0x5c
lea edx, [esp + 0xbc]
push ecx
push edx
mov byte [esp + 0x11c], 6
call fcn.00409b40
push esi
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0x124], 7
push eax
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___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
add esp, 0x20
push 1
lea ecx, [esp + 0xb4]
mov byte [esp + 0x10c], 0xa
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 + 0x94]
mov byte [esp + 0x10c], 9
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_]
lea ecx, [esp + 0x28]
push ecx
call fcn.0040b260
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
jne 0x417072
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 ebx
push eax
push edi
call fcn.00410a90
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, ebx
jne 0x41708a
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 fcn.004173a0
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
jne 0x4170a0
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 fcn.004173a0
add esp, 4
lea edx, [esp + 0x13]
lea ecx, [esp + 0x38]
push edx
call fcn.004270c0
push edi
lea ecx, [esp + 0xc4]
mov byte [esp + 0x10c], 0xb
call fcn.00409cf0
mov eax, dword [esp + 0xe0]
lea ecx, [esp + 0x12]
push ecx
lea ecx, [esp + 0x3c]
lea ebp, [eax - 0x16]
mov byte [esp + 0x16], bl
push ebp
call fcn.00427720
xor edx, edx
push 0xa
mov dword [esp + 0x4c], edx
push 0x45a4f0
mov dword [esp + 0x54], edx
push edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov word [esp + 0x68], dx
call fcn.00416b90
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4171b2
lea eax, [esp + 0x12]
lea ecx, [esp + 0x80]
push eax
push str.Cant_open_rb
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__]
push edi
lea ecx, [esp + 0x74]
push eax
push ecx
mov byte [esp + 0x114], 0xc
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 byte [esp + 0x108], 0xd
cmp eax, ebx
jne 0x417160
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 fcn.0040bb90
add esp, 4
lea ecx, [esp + 0x70]
mov byte [esp + 0x108], 0xc
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 + 0x84]
mov byte [esp + 0x10c], 0xb
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 esi, dword [esp + 0x110]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
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_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov dword [esp + 0x14], 1
jmp 0x41721a
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x16
lea eax, [esp + 0x50]
push 1
push eax
call edi
mov ecx, dword [esp + 0x4c]
push esi
push ebp
push 1
push ecx
call edi
mov edi, dword [sym.imp.MSVCRT.dll_fclose]
push esi
call edi
mov eax, dword [esp + 0x40]
add esp, 0x24
cmp eax, ebx
jne 0x4171e8
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 0xa
push 0x45a4f8
push eax
call fcn.00416b90
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x41722d
mov esi, dword [esp + 0x110]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
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_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x108], 9
call fcn.004275b0
jmp 0x41726f
mov eax, dword [esp + 0x3c]
push esi
push ebp
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call edi
add esp, 0x14
lea ecx, [esp + 0x38]
mov byte [esp + 0x108], 9
call fcn.004275b0
mov esi, dword [esp + 0x110]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
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_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov dword [esp + 0x14], 1
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10c], 4
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 + 0x10c], bl
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 ecx, dword [esp + 0x100]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xfc
ret