Function at 0x415cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42517f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov eax, dword [0x42fc60]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x11], 1
push 0x427d80
lea ecx, [ebp + 8]
call fcn.004217a0
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x415d92
cmp dword [ebp + 0x10], 0
je 0x415d8b
lea eax, [ebp - 0xf4]
push eax
call fcn.00417e10
add esp, 4
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x13c]
push edx
mov ecx, dword [ebp + 0x10]
call dword [0x426080]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x415fe4
cmp dword [ebp + 0x14], 0
je 0x415da5
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x140], ecx
jmp 0x415daf
mov dword [ebp - 0x140], 0
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x88], edx
mov byte [ebp - 0xa0], 0
xor eax, eax
mov dword [ebp - 0x9f], eax
mov dword [ebp - 0x9b], eax
mov dword [ebp - 0x97], eax
mov dword [ebp - 0x93], eax
mov word [ebp - 0x8f], ax
mov byte [ebp - 0x8d], al
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x415f31
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0xf8], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.004095d0
lea eax, [ebp - 0xd8]
push eax
call fcn.00416ea0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP71.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
movzx ecx, al
test ecx, ecx
jne 0x415e74
push 5
push str.UTF_8
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call fcn.0041d8c0
add esp, 0xc
test eax, eax
jne 0x415ece
push ecx
mov ecx, esp
mov dword [ebp - 0xfc], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.004095d0
lea eax, [ebp - 0x118]
push eax
call fcn.00416d80
add esp, 8
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x148], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x148]
push edx
lea ecx, [ebp - 0xbc]
call dword [0x426080]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
sub eax, 1
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [ebp - 0x8c]
push edx
lea eax, [ebp - 0xa0]
push eax
push str._s_d_bytes
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x415f6a
lea edx, [ebp - 0x84]
push edx
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x415fc3
cmp dword [ebp + 0x10], 0
je 0x415fc3
lea ecx, [ebp - 0x134]
push ecx
call fcn.00417e10
add esp, 4
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], edx
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x150]
push eax
mov ecx, dword [ebp + 0x10]
call dword [0x426080]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x415fe1
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x88]
mov dword [edx], eax
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x18]
call fcn.00423fdd
mov esp, ebp
pop ebp
ret